Expand description
HTTP-specific types for the x402 payment protocol server middleware.
Provides route configuration, payment options, request context, and
processing result types used by [super::server::PaymentGate].
Corresponds to Python SDK’s http/types.py.
Structs§
- Payment
Option - A payment option accepted by a protected route.
- Paywall
Config - Paywall UI configuration for browser-based 402 responses.
- Route
Config - Configuration for a payment-protected route.
- Route
Validation Error - A validation error for a route configuration.
- Settle
Result - Result of settlement processing after a successful response.
Enums§
- Process
Result - Result of processing an HTTP request through the payment gate.