HttpRequestBuilder
Contains parameters used to make an HTTP request.
Learn more from Making requests.
Constructors
Types
Functions
Creates immutable HttpRequestData.
Retrieves capability by the key.
Sets request-specific attributes specified by block.
Sets capability configuration.
Mutates this by copying all the data but execution context from another builder using it as the base.
Mutates this copying all the data from another builder using it as the base.
Executes a block that configures the URLBuilder associated to this request.
Properties
Extensions
Appends the Accept
header with a specific contentType.
Appends the HttpHeaders.Authorization to Basic Authorization with the provided username and password. For advanced configuration use the io.ktor:ktor-client-auth
plugin.
Appends the HttpHeaders.Authorization to Bearer Authorization with the provided token. For advanced configuration use the io.ktor:ktor-client-auth
plugin.
Appends a single header of key with a specific value if the value is not null.
Terminate HttpClient.receivePipeline if status code is not successful (>=300).
Executes a block that configures the HeadersBuilder associated to this request.
Gets the associated URL's host.
Registers listener to observe download progress.
Registers listener to observe upload progress.
Gets the associated URL's port.
Configures the HttpRequestRetry plugin on a per-request level.
Sets the HttpRequestBuilder from request.
Adds timeout boundaries to the request. Requires the HttpTimeout plugin to be installed.
Executes a block that configures the URLBuilder associated to this request.
Sets the url using the specified scheme, host, port and path. Pass null
to keep the existing value in the URLBuilder.
Sets the HttpRequestBuilder.url from urlString.
Sets the HttpRequestBuilder.url from url.
Sets the HttpRequestBuilder.url from url.