Appends Base64-decoded content to the request body.
Base64-encoded content to decode and append.
Appends content to the request body.
Content to append.
Optionalcharset: stringCharacter set for encoding.
Adds a request header (allows duplicate keys).
Header name.
Header value.
Adds a form parameter for POST requests.
Parameter name.
Optionalvalue: stringParameter value.
Sets HTTP Basic authentication credentials.
The username.
The password.
Clears the current error. Returns true if an error was cleared.
Gets the connection timeout in milliseconds.
Sets the connection timeout in milliseconds.
Returns the response content length.
Executes the HTTP request. Returns true on success, false on failure.
Returns the current error message, or null if no error.
Returns the response filename.
Gets whether redirects are followed.
Sets whether redirects are followed.
Gets the response content as a string.
Optionalcharset: stringCharacter set for decoding, or "BASE64" to get Base64-encoded content.
Gets the response content as a download URL.
Gets the HTTP method.
Sets the HTTP method (GET, POST, PUT, HEAD, OPTIONS, DELETE, TRACE).
Returns the response MIME type.
Gets the read timeout in milliseconds.
Sets the read timeout in milliseconds.
Gets the request headers as a map.
Returns the HTTP response code.
Returns the response headers as a map.
Returns the HTTP response message.
Sets the request body content.
The request body content.
Optionalcharset: stringCharacter set for encoding.
Sets a request header, replacing any existing header with the same key.
Header name.
Header value. If null, removes the header.
Gets the request URL.
Sets the request URL.
A stateful HTTP request builder. Configure the request, call doRequest(), then read response fields.