Class HTTPClientRequest
Inherits from
-
HTTPRequest
(base class)
Fields
Name | Type | Description |
---|---|---|
headers | InetHeaderMap | All request headers |
httpVersion | HTTPVersion | The HTTP protocol version used for the request |
method | HTTPMethod | The HTTP method of the request |
requestURL | string | The request URL |
Properties
Name | Type | Description |
---|---|---|
bodyWriter | OutputStream | An output stream suitable for writing the request body. |
contentType | string | Returns the mime type part of the 'Content-Type' header. |
contentTypeParameters | string | Returns any supplementary parameters of the 'Content-Type' header. |
host | string | Shortcut to the 'Host' header (always present for HTTP 1.1) |
persistent | 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 |
---|---|
requestUrl | Compatibility alias, will be deprecated soon. |
url | 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.