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(feature = "server")]
15pub mod server;
16
17#[cfg(feature = "client")]
18pub mod client;