Skip to main content

Crate r402_http

Crate r402_http 

Source
Expand description

HTTP transport layer for the x402 payment protocol.

This crate provides HTTP middleware for both client and server roles in the x402 payment protocol.

§Feature Flags

  • server — Axum/Tower middleware for payment gating
  • client — reqwest-middleware for automatic 402 handling
  • telemetry — Tracing instrumentation

Modules§

clientclient
Reqwest middleware for automatic x402 payment handling.
serverserver
Axum middleware for enforcing x402 payments on protected routes (V2-only).