openagent-http · transport
Declared module signatures, types, configuration, and source documentation.
Source: openagent-sdk/adapters/http/rust/src/transport.rs. SHA-256: 3c74f3a12577b95f58fdecb1da9c390d554f6bf1df536c197a4c1a322e16dc1c.
This source reference follows declared modules and preserves feature attributes. It includes public declarations and implementation methods in those modules. Private-module exports and trait resolution still require the compiler; not every declaration is a crate-root import. Function bodies and constant values are omitted. Source comments describe their implementation context and are not a production deployment claim.
transport::HttpTransport
HTTP transport carrying the identity flow over REST.
The challenge is fetched with POST <auth endpoint> and the proof with
POST <auth endpoint>/prove, per the HTTP binding's proactive form. The
reactive form (401 + WWW-Authenticate) is handled by the client, which
also understands challenge headers.
pub struct HttpTransport {
}Source line: 16.
transport::HttpTransport::new
Creates a new HTTP transport with the given reqwest client.
pub fn new(client: reqwest::Client) -> Self;Source line: 22.
transport::HttpTransport::with_defaults
Creates a new HTTP transport with a default client.
pub fn with_defaults() -> Result<Self, AuthProtocolError>;Source line: 27.
transport::HttpTransport::inner
Returns a reference to the inner reqwest client.
pub fn inner(&self) -> &reqwest::Client;Source line: 38.