HttpClientConfig
A mutable HttpClient configuration. Learn more about the client's configuration from Creating and configuring a client.
Properties
Indicates whether the client should use development mode. In development mode, the client's pipelines have advanced stack traces.
Terminates HttpClient.receivePipeline if the status code is not successful (>=300). Learn more from Response validation.
Specifies whether the client redirects to URLs provided in the Location
header. You can disable redirections by setting this property to false
.
Uses defaultTransformers to automatically handle simple ContentType.
Functions
Default response validation. Check the response status code in range (0..299).
Installs the UserAgent plugin with a browser-like user agent.
Configure client charsets.
Clones this HttpClientConfig by duplicating all the plugins and customInterceptors.
Installs the UserAgent plugin with a CURL user agent.
Set default request parameters. See DefaultRequest
Install HttpCallValidator with block configuration.
Applies all the installed plugins and customInterceptors from this configuration into the specified client.
Installs the plugin from the other client's configuration.
Install ResponseObserver plugin in client.
Installs the WebSockets plugin using the config as configuration.