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.

Constants§

LONG_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_client_without_redirects
Build an origin-bound client without a fallback that could enable redirects.
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