Reset response buffer when generating error responses.
Accept offset in tcp_connection_sendfile().
Added http_response_write_file() and http_response_sendfile() methods.
Try the sendfile if the response buffer is empty.