Test and document the legacy HTTPRequest.write interface.
Remove the has_body flag from write_headers.

It was only used client-side and we can infer whether we need to add
a framing mechanism from the method instead.