pub struct PreparedRequest {
pub method: &'static str,
pub origin: String,
pub path: String,
pub content_type: &'static str,
pub accept: &'static str,
pub network: NetworkPolicy,
pub protocol: ProviderWireProtocol,
pub auth_header_name: Option<&'static str>,
pub version_header: Option<(&'static str, &'static str)>,
pub bounded: bool,
/* private fields */
}Expand description
Fully prepared only immediately before the injected executor is called. Debug deliberately excludes the body, secret reference, and resolved secret.
Fields§
§method: &'static str§origin: String§path: String§content_type: &'static str§accept: &'static str§network: NetworkPolicy§protocol: ProviderWireProtocol§auth_header_name: Option<&'static str>When set, the executor writes the resolved secret in this header name
instead of the Authorization: Bearer header. The Anthropic
(x-api-key) and Gemini (x-goog-api-key) protocols require a custom
API-key header.
version_header: Option<(&'static str, &'static str)>A fixed protocol header the executor writes alongside the credential
header. The Anthropic Messages protocol requires the pinned
anthropic-version: 2023-06-01 header on every request.
bounded: boolTrue for the bounded non-streaming completion dispatch (model
intelligence categorization). Bounded requests carry application/json
accept and are validated against the bounded allowlist, which accepts
the OpenRouter origin with the OpenAiCompat wire protocol.