Skip to content
Packages Examples Agents Blog Get started

Config section: http
Env prefix: ORI_HTTP__
Config model: HTTPClientConfig

KeyTypeDefaultEnv varDescription
poolConnectionPoolConfigORI_HTTP__POOL__*Connection pool settings
proxystr | NoneNoneORI_HTTP__PROXYHTTP/HTTPS proxy URL
trust_envboolTrueORI_HTTP__TRUST_ENVRead proxy from env vars
cookie_jarboolTrueORI_HTTP__COOKIE_JAREnable in-memory cookie jar
KeyTypeDefaultEnv varDescription
max_connectionsint10ORI_HTTP__POOL__MAX_CONNECTIONSTotal concurrent connections
max_keepalive_connectionsint5ORI_HTTP__POOL__MAX_KEEPALIVE_CONNECTIONSKeep-alive per host
max_connections_per_hostint10ORI_HTTP__POOL__MAX_CONNECTIONS_PER_HOSTMax per host
timeoutfloat30.0ORI_HTTP__POOL__TIMEOUTRequest timeout (seconds)
ttl_dns_cacheint300ORI_HTTP__POOL__TTL_DNS_CACHEDNS cache TTL (seconds)
force_closeboolFalseORI_HTTP__POOL__FORCE_CLOSEForce-close connections after use
http:
pool:
max_connections: 50
max_keepalive_connections: 20
timeout: 10.0
ttl_dns_cache: 60
proxy: http://proxy.example.com:8080
trust_env: true
cookie_jar: true

Env var override form:

Terminal window
export ORI_HTTP__POOL__TIMEOUT=5.0
export ORI_HTTP__POOL__MAX_CONNECTIONS=100
export ORI_HTTP__PROXY=http://proxy.internal:8080