Class HttpClientRequest

Inherits from

Fields

Name Type Descrption
httpVersion [inherited] HttpVersion The HTTP protocol version used for the request
method [inherited] HttpMethod The HTTP method of the request
requestUrl [inherited] string The request URL
headers [inherited] InetHeaderMap All request headers

Methods

Name Description
writeBody Writes the whole response body at once using raw bytes.
writeFormBody Writes the response body as form data.
writeJsonBody Writes the response body as JSON data.
writePart
bodyWriter An output stream suitable for writing the request body.
host [inherited] Shortcut to the 'Host' header (always present for HTTP 1.1)
contentType [inherited] Returns the mime type part of the 'Content-Type' header.
contentTypeParameters [inherited] Returns any supplementary parameters of the 'Content-Type' header.
persistent [inherited] Determines if the connection persists across requests.

Aliases

Name Description
url [inherited] Please use requestUrl instead.

Authors

Sönke Ludwig, Jan Krüger

Copyright

© 2012 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.