Write response body.
This function will automatically call xr_http_write_header() if it was not called before.
This method may be called multiple times to write response iteratively.