Available on crate feature
client only.Expand description
Client-side x402 payment handling for reqwest.
X402Client is a thin HTTP adapter over r402_core::PaymentClient:
scheme registration, policies, selection, and lifecycle hooks live in core.
This module maps signed payloads to Payment-Signature and dispatches
on_payment_response after paid retries (including one corrective recovery).
Structs§
- X402
Client - HTTP middleware over a core
PaymentClient.
Traits§
- With
Payments - Extension trait for adding x402 payment handling to a reqwest
Client.
Functions§
- parse_
payment_ required - Parses a 402 Payment Required response into a
wire::PaymentRequired. - payment_
signature_ headers - Builds the
Payment-Signatureheader map from a created payment.