openagent-http · headers
Declared module signatures, types, configuration, and source documentation.
Source: openagent-sdk/adapters/http/rust/src/headers.rs. SHA-256: 8c24d4281714b6d4a9eae19e89a1e696427759aa9516860fa5542623e23935d4.
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.
headers::OPENAGENT_AUTH_SCHEME
The canonical authorization scheme for OpenAgent-authenticated requests, per the Core Protocol HTTP binding.
pub const OPENAGENT_AUTH_SCHEME: &str;Source line: 11.
headers::HEADER_OPENAGENT_DID
Header carrying the authenticated agent's DID.
pub const HEADER_OPENAGENT_DID: &str;Source line: 14.
headers::HEADER_OPENAGENT_SESSION
Header carrying the session token (alternative to the Authorization header for clients that cannot set it).
pub const HEADER_OPENAGENT_SESSION: &str;Source line: 18.
headers::CONTENT_TYPE_JSON
Content-Type for all Core Protocol JSON payloads.
pub const CONTENT_TYPE_JSON: &str;Source line: 21.
headers::extract_openagent_token
Extract the session token from an Authorization: OpenAgent <token>
header. Returns None if the header is missing, malformed, or uses a
different scheme.
pub fn extract_openagent_token(authorization: &str) -> Option<&str>;Source line: 26.
headers::build_openagent_header
Build an Authorization: OpenAgent <token> header value.
pub fn build_openagent_header(token: &str) -> String;Source line: 42.
headers::build_challenge_header
Build a WWW-Authenticate: OpenAgent challenge="<base64url>" header value
for the reactive flow: the challenge object serialized and base64url
encoded (per the HTTP binding, Section 4.3 of the specification).
pub fn build_challenge_header(challenge: &IdentityChallenge) -> String;Source line: 49.
headers::parse_challenge_header
Decode a challenge from a WWW-Authenticate header value (client side of
the reactive flow).
pub fn parse_challenge_header(header_value: &str) -> Option<IdentityChallenge>;Source line: 57.