Skip to main content

Module http_client

Module http_client 

Source
Expand description

HTTP client utilities

Consolidated re-exports from vtcode-commons and LLM-specific factories.

Structs§

HttpClientFactory
Factory for creating pre-configured HTTP clients.
HttpTimeouts
Resolved HTTP timeout defaults shared by every outbound client.

Functions§

create_client_with_timeout
Create an HTTP client with a custom request 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_client_without_redirects
Build an origin-bound client without a fallback that could enable redirects.
create_default_client
Create a default HTTP client with the installed timeout defaults.
create_default_client_without_redirects
Build an origin-bound client without redirects, using the installed defaults.
create_download_client
Create a client for large artifact transfers (release downloads, assets).
create_streaming_client
Create an HTTP client optimized for streaming.
get_or_create_default_client
Get a default client or create one
http_timeouts
Current process-wide HTTP timeout defaults.
install_http_timeouts
Install process-wide HTTP timeout defaults.