Skip to main content

Module http_client

Module http_client 

Source

Constants§

DEFAULT_TIMEOUT_SECS
Default timeout for HTTP requests (30 seconds)
DEFAULT_USER_AGENT
Default user agent for Terraphim HTTP clients

Functions§

create_api_client
Backwards compatibility: returns a clone of the API client
create_client_with_timeout
Get an HTTP client with custom timeout
create_custom_client
Create a custom HTTP client with specific configuration
create_default_client
Backwards compatibility: returns a clone of the default client
create_scraping_client
Backwards compatibility: returns a clone of the scraping client
get_api_client
Get the global API HTTP client with JSON headers and connection pooling
get_default_client
Get the global default HTTP client with connection pooling
get_scraping_client
Get the global web scraping HTTP client with connection pooling