Http Request Builder
Contains parameters used to make an HTTP request.
Learn more from Making requests.
Properties
Provides access to attributes specific for this request.
The body for this request. Initially EmptyContent.
A deferred used to control the execution of this request.
Terminate HttpClient.receivePipeline if status code is not successful (>=300).
Gets the associated URL's host.
Gets the associated URL's port.
Functions
Appends the Accept header with a specific contentType.
Appends the HttpHeaders.Authorization to Bearer Authorization with the provided token. For advanced configuration use the io.ktor:ktor-client-auth plugin.
Controls how the plugin captures a diagnostic buffer of the SSE stream that has already been processed, so you can inspect it when an exception occurs.
Creates immutable HttpRequestData.
Appends a single header of key with a specific value if the value is not null.
Retrieves capability by the key.
Registers listener to observe download progress.
Registers listener to observe upload progress.
Configures the HttpRequestRetry plugin on a per-request level.
Sets request-specific attributes specified by block.
Sets capability configuration.
Prevent saving response body in memory for the specific request.
Mutates this by copying all the data but execution context from another builder using it as the base.
Sets the HttpRequestBuilder from request.
Mutates this copying all the data from another builder using it as the base.
Adds timeout boundaries to the request. Requires the HttpTimeout plugin to be installed.
Sets the path to the Unix domain socket file.
Sets the HttpRequestBuilder.url from url.
Executes a block that configures the URLBuilder associated to this request.
Sets the HttpRequestBuilder.url from urlString.
Sets the HttpRequestBuilder.url from url.