Skip to main content

Module http

Module http 

Source
Expand description

HTTP plumbing: header injection, the Proton response envelope, bearer-token authentication and transparent 401 refresh.

Mirrors HttpApiCallBuilder, AuthorizationHandler and TokenCredential from the C# SDK, collapsed into a single reqwest-based client since Rust has no DelegatingHandler pipeline.

Structs§

ApiHttpClient
A reqwest-backed client bound to a single authenticated session.
Tokens
The mutable authentication tokens for a session, shared between every request and the refresh path.

Functions§

post_unauthenticated
POST {path} without a session: no x-pm-uid and no bearer token.