Skip to main content

Module http

Module http 

Source
Expand description

HTTP client utilities

Constants§

DEFAULT_TIMEOUT
LONG_TIMEOUT
SHORT_TIMEOUT

Functions§

create_client_with_timeout
Create an HTTP client with a custom timeout
create_client_with_timeouts
Create an HTTP client with custom connect and request timeouts
create_client_with_user_agent
Create an HTTP client with a specific user agent
create_default_client
Create a default HTTP client with standard timeouts
create_streaming_client
Create an HTTP client optimized for streaming
get_or_create_default_client
Get a default client or create one