Builder
class Builder
Content copied to clipboard
Constructors
Functions
build
Link copied to clipboard
keep Compression
Link copied to clipboard
Keep compression flag.
method
Link copied to clipboard
HTTP defines a set of request methods to indicate the desired action to be performed for a given resource.
network Restriction
Link copied to clipboard
open fun networkRestriction(@NonNull networkRestriction: NetworkRestriction): HttpRequest.Builder
Content copied to clipboard
Restrict the request to the specified network types.
timeout
Link copied to clipboard
Timeout defines how long, in seconds, the request is allowed to take in total (including connecting to the host).
ua Components
Link copied to clipboard
open fun uaComponents(@NonNull uaComponents: UAComponents): HttpRequest.Builder
Content copied to clipboard
Application and SDK information for generating a User-Agent string.
url
Link copied to clipboard
URL the request should be sent to