HTTP Client Settings¶
Examples¶
Here is an example containing all default values for the http_client application settings.
http_client:
enabled: true
proxy_transport:
type: harp_apps.http_client.transports.AsyncFilterableTransport
timeout: 30.0
transport:
retries: 0
type: httpx.AsyncHTTPTransport
verify: true
type: httpx.AsyncClient
Reference¶
Implementation (python): HttpClientSettings
Title |
Description |
Type |
Format |
Required |
|---|---|---|---|---|
Base |
Base type for service definition. |
|||
base |
object |
|||
Type |
Type for service definition. |
|||
type |
string |
|||
Default |
httpx.AsyncClient
|
|||
Constructor |
Optional custom constructor for the service. |
|||
constructor |
object |
|||
Arguments |
||||
arguments |
object |
|||
Default |
timeout: 30.0
|
|||
Arguments |
||||
arguments/* |
object |
|||
Enabled |
Whether the application is enabled |
|||
enabled |
boolean |
|||
Default |
true
|
|||
Service |
A settings base class for service definitions. See Service |
|||
transport |
object |
|||
Transport Base |
Base type for service definition. |
|||
transport/base |
object |
|||
Transport Type |
Type for service definition. |
|||
transport/type |
object |
|||
Transport Constructor |
Optional custom constructor for the service. |
|||
transport/constructor |
object |
|||
Transport Arguments |
Arguments for the service constructor. |
|||
transport/arguments |
object |
|||
Transport |
||||
transport/* |
object |
|||
Service |
A settings base class for service definitions. See Service |
|||
proxy_transport |
object |
|||
Proxy Transport Base |
Base type for service definition. |
|||
proxy_transport/base |
object |
|||
Proxy Transport Type |
Type for service definition. |
|||
proxy_transport/type |
object |
|||
Proxy Transport Constructor |
Optional custom constructor for the service. |
|||
proxy_transport/constructor |
object |
|||
Proxy Transport Arguments |
Arguments for the service constructor. |
|||
proxy_transport/arguments |
object |
|||
Proxy Transport |
||||
proxy_transport/* |
object |
|||
* |
object |
|||
Note
For cache settings, see the http_cache settings documentation.