Skip to main content

Module http

Module http 

Source
Expand description

HTTP client abstraction.

The trait and its types now live in defect-core so defect-http can implement them without depending on the agent runtime. Re-exported here so existing defect_agent::http::* paths keep working — the CLI still injects Arc<dyn HttpClient> into crate::session::AgentCore, propagated through crate::tool::ToolContext to tools.

Structs§

HttpRequest
An HTTP fetch request.
HttpResponse
A response that was fetched successfully.
NoopHttpClient
A placeholder implementation for testing or an echo provider. Every fetch call returns HttpClientError::Transport, allowing assembly paths that require Arc<dyn HttpClient> to skip constructing a real HTTP stack.

Enums§

HttpClientError

Traits§

HttpClient
HTTP fetch backend trait.