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§
- 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.