Skip to main content

Module client

Module client 

Source
Expand description

reqwest-backed HttpConnector implementation (OAPI-01). reqwest-backed HttpConnector implementation (OAPI-01).

Lifts the pmcp-run reference HttpClient::execute_with_options body into a toolkit-owned HttpClient that implements HttpConnector. The concrete shape mirrors crate::sql::sqlite::SqliteConnector (a concrete connector impl

  • constructor). Construction is LAZY โ€” new parses the base URL but contacts no backend (CF-2). URL building uses the shared [crate::http::join_url] helper so an API-Gateway stage prefix (/v1) survives (Pitfall 2 โ€” explicit path concatenation, never the RFC-3986 url-crate path merge). Error messages never echo the URL or a credential (Pitfall 5).

Structsยง

HttpClient
reqwest-backed HttpConnector.
HttpConfig
HTTP client configuration (OWNED here in http, mirroring super::AuthConfig ownership so Plan 02 re-exports it rather than redefining).