Skip to content

[http_client] section

Http_client service configuration

connect_timeout

Default value10s
YAML Pathhttp_client.connect_timeout
Key-Value Pathhttp_client/connect_timeout
EnvironmentNOC_HTTP_CLIENT_CONNECT_TIMEOUT

request_timeout

Default value1h
YAML Pathhttp_client.request_timeout
Key-Value Pathhttp_client/request_timeout
EnvironmentNOC_HTTP_CLIENT_REQUEST_TIMEOUT

user_agent

Default valuenoc
YAML Pathhttp_client.user_agent
Key-Value Pathhttp_client/user_agent
EnvironmentNOC_HTTP_CLIENT_USER_AGENT

buffer_size

Default value131072
YAML Pathhttp_client.buffer_size
Key-Value Pathhttp_client/buffer_size
EnvironmentNOC_HTTP_CLIENT_BUFFER_SIZE

max_redirects

Default value5
YAML Pathhttp_client.max_redirects
Key-Value Pathhttp_client/max_redirects
EnvironmentNOC_HTTP_CLIENT_MAX_REDIRECTS

ns_cache_size

Default value1000
YAML Pathhttp_client.ns_cache_size
Key-Value Pathhttp_client/ns_cache_size
EnvironmentNOC_HTTP_CLIENT_NS_CACHE_SIZE

resolver_ttl

Default value3s
YAML Pathhttp_client.resolver_ttl
Key-Value Pathhttp_client/resolver_ttl
EnvironmentNOC_HTTP_CLIENT_RESOLVER_TTL

http_port

Default value80
YAML Pathhttp_client.http_port
Key-Value Pathhttp_client/http_port
EnvironmentNOC_HTTP_CLIENT_HTTP_PORT

https_port

Default value443
YAML Pathhttp_client.https_port
Key-Value Pathhttp_client/https_port
EnvironmentNOC_HTTP_CLIENT_HTTPS_PORT

validate_certs

Have to be set as True

Default valueFalse
YAML Pathhttp_client.validate_certs
Key-Value Pathhttp_client/validate_certs
EnvironmentNOC_HTTP_CLIENT_VALIDATE_CERTS