Skip to main content

r402_http/
lib.rs

1#![cfg_attr(docsrs, feature(doc_cfg))]
2
3//! HTTP transport layer for the x402 payment protocol.
4//!
5//! This crate provides HTTP middleware for both client and server roles
6//! in the x402 payment protocol.
7//!
8//! # Feature Flags
9//!
10//! - `server` — Axum/Tower middleware for payment gating
11//! - `client` — reqwest-middleware for automatic 402 handling
12//! - `telemetry` — Tracing instrumentation
13
14#[cfg(test)]
15use tokio as _;
16#[cfg(test)]
17use wiremock as _;
18
19#[cfg(feature = "server")]
20pub mod server;
21
22#[cfg(feature = "client")]
23pub mod client;