Skip to main content

net/
lib.rs

1// SPDX-License-Identifier: Apache-2.0
2//! **net** — hand-rolled transport primitives shared by the `mcp` crate and
3//! agentd's intel client. One blocking HTTP/1.1 client over any `Read + Write`
4//! (the single highest-leverage minimalism decision — avoids the url→IDNA→ICU and
5//! async-runtime taxes) with buffered + streaming/SSE request paths, plus
6//! unix-socket and the feature-gated tls/vsock connects, and an SSRF egress
7//! classifier. RFC 0006 §transports. serde-free.
8
9pub mod http;
10pub mod ssrf;
11pub mod unixsock;
12
13#[cfg(feature = "tls")]
14pub mod tls;
15
16// A minimal X.509 field extractor (subject CN + SANs) for surfacing an mTLS
17// peer's verified identity to principal matching (RFC 0029 §10.3). Only needed
18// under TLS; pure DER parsing, no new dependency.
19#[cfg(feature = "tls")]
20pub mod x509;
21
22#[cfg(feature = "vsock")]
23pub mod vsock;