Builder
class Builder
Builder helper class for constructing HttpRequests.
Although this class can be created directly, there are some additional helper methods to start the builder process: HttpRequest.get and HttpRequest.post that will prepopulate the Builder with the given parameters.
Parameters
url
required destination; the build method will throw if this is invalid
method
required http method for making the request
See also
Functions
Link copied to clipboard
Sets multiple HTTP headers at once for the outgoing request.
Link copied to clipboard
Sets the request body that needs to be sent.
Link copied to clipboard
Constructs the HttpRequest using the parameters given to the builder.
Link copied to clipboard
Link copied to clipboard
Sets an optional etag value for a previously cached value.
Link copied to clipboard
Sets whether or not the outbound request will be GZipped prior to sending.
Link copied to clipboard
Sets an HTTP header for the outgoing request.