You are right. sendHeaders() would be enought