Expand description
Authentication primitives and the RequestSigner hook.
ApiKey wraps a secret with a redacting Debug impl. The
RequestSigner trait is the extension point: every outbound request
is handed to a signer just before transmission. Default behavior is
ApiKeySigner (adds x-api-key); behind the bedrock feature,
BedrockSigner signs requests with
AWS sigv4. A custom signer can be installed via
ClientBuilder::signer.
Structs§
- ApiKey
- Anthropic API key.
- ApiKey
Signer async - Default signer: adds the
x-api-keyheader from the wrapped key.
Traits§
- Request
Signer async - Hook called for every outbound HTTP request just before transmission.
Type Aliases§
- Signer
Result - Result alias for
RequestSigner::sign. Boxed errors so signer implementations can use any error type that satisfies the bound.