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 the agent core, propagated through the tool
context to tools.
Unlike the per-session FsBackend / ShellBackend (which live in defect-agent),
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.