Expand description
HTTP fetch backend abstraction.
HttpClient is the trait boundary between the fetch tool and the underlying HTTP
stack. The concrete implementation comes from defect-http; during session assembly
the CLI injects Arc<dyn HttpClient> into crate::session::AgentCore, propagated
through crate::tool::ToolContext to tools.
Unlike crate::fs::FsBackend / crate::shell::ShellBackend, HTTP has no
per-client capability negotiation, so HttpClient is shared at the process level
rather than assembled per session; it simply reuses the same Arc<dyn …> injection
pattern to avoid introducing a new injection path.
Structs§
- Http
Request - An HTTP fetch request.
- Http
Response - A response that was fetched successfully.
- Noop
Http Client - A placeholder implementation for testing or an
echoprovider. Everyfetchcall returnsHttpClientError::Transport, allowing assembly paths that requireArc<dyn HttpClient>to skip constructing a real HTTP stack.
Enums§
Traits§
- Http
Client - HTTP fetch backend trait.