openagent-http · discovery
Declared module signatures, types, configuration, and source documentation.
Source: openagent-sdk/adapters/http/rust/src/discovery.rs. SHA-256: 76dfb34252ff2196b5f6cb0c381771dba74eb929cf75c150dcad78d85744fb9c.
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.
discovery::fetch_discovery
Fetch the discovery document from a server.
Sends GET <base_url>/.well-known/openagent and parses the response.
pub async fn fetch_discovery(
http_client: &reqwest::Client,
base_url: &str,
) -> Result<DiscoveryDocument, AuthProtocolError>;Source line: 14.
discovery::resolve_auth_endpoint
Resolve the full auth endpoint URL from a base URL and discovery document.
pub fn resolve_auth_endpoint(base_url: &str, doc: &DiscoveryDocument) -> String;Source line: 47.
discovery::resolve_prove_endpoint
Resolve the prove endpoint URL (auth endpoint + /prove).
pub fn resolve_prove_endpoint(base_url: &str, doc: &DiscoveryDocument) -> String;Source line: 54.