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

Properties

Name Type Description
bodyWriter OutputStream An output stream suitable for writing the request body.
host [inherited] string Shortcut to the 'Host' header (always present for HTTP 1.1)
contentType [inherited] string Returns the mime type part of the 'Content-Type' header.
contentTypeParameters [inherited] string Returns any supplementary parameters of the 'Content-Type' header.
persistent [inherited] bool Determines if the connection persists across requests.

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

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.