Expand description
HTTP transport layer for the x402 payment protocol.
Provides header encoding/decoding, constants, and (feature-gated) client/server middleware for the x402 payment protocol.
§Modules
constants— HTTP header names, status codes, default URLsheaders— Base64 encoding/decoding for x402 HTTP headerserror— HTTP transport error typesfacilitator— HTTP facilitator client (feature:client)client— reqwest-middleware for automatic 402 handling (feature:client)types— HTTP server types (feature:server)server— Axum/Tower payment gate middleware (feature:server)
Modules§
- client
- HTTP client middleware for automatic x402 payment handling.
- constants
- HTTP-specific constants for the x402 protocol.
- error
- Error types for the HTTP transport layer.
- facilitator
- HTTP-based facilitator client for the x402 protocol.
- headers
- HTTP header encoding and decoding for x402 protocol messages.
- paygate
- Per-route Axum payment gate middleware.
- server
- Axum/Tower server middleware for automatic x402 payment gating.
- types
- HTTP-specific types for the x402 payment protocol server middleware.