net-cat 0.1.0

Minimal hand-rolled HTTP/1.1 client over std::net::TcpStream. Plain HTTP only in v0 (no TLS); used to give web-api-cat's fetch a concrete backend. No external HTTP crate; all parsing and framing are local. No mut beyond the FFI carve-out for TcpStream::read_to_end. Sixth sub-crate of a Servo-replacement webview runtime targeting Tauri.
//! Minimal hand-rolled HTTP/1.1 client.
//!
//! # Example
//!
//! ```
//! # fn main() -> Result<(), net_cat::Error> {
//! use net_cat::{Method, Request, Url};
//!
//! let url = Url::parse("http://example.com/")?;
//! let request = Request::new(Method::Get, url).with_header("Accept", "text/html");
//! // `fetch(&request)` would perform a real network call -- doctest is
//! // offline-safe, so it's elided.
//! assert_eq!(request.method().as_str(), "GET");
//! # Ok(())
//! # }
//! ```

#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![allow(clippy::similar_names)]

pub mod error;
pub mod fetch;
pub mod headers;
pub mod method;
pub mod request;
pub mod response;
pub mod transport;
pub mod url;

pub use error::Error;
pub use fetch::fetch;
pub use headers::Headers;
pub use method::Method;
pub use request::Request;
pub use response::Response;
pub use url::Url;