docs.rs failed to build net-cat-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
net-cat
Minimal hand-rolled HTTP/1.1 client over std::net::TcpStream. Plain HTTP only in v0 (no TLS).
net-cat is the sixth sub-crate of a comp-cat-rs Servo-replacement webview runtime targeting Tauri integration. It gives web-api-cat's fetch binding a concrete backend without pulling an external HTTP crate.
Example
use ;
let url = parse.unwrap;
let request = new.with_header;
// fetch(&request) would perform a real network call -- not exercised in
// the doctest to keep `cargo test` offline.
v0 scope
Method(GET/POST/PUT/DELETE/HEAD/OPTIONS/PATCH).Urlparser (http://host[:port]/path?query;https://returnsError::UnsupportedScheme).Headers(case-insensitive name lookup, ordered list).RequestandResponsewith status, headers, body bytes.fetch(request)-- TCP connect, write request, read until EOF (forcedConnection: close), parse response.- Automatic
Host,User-Agent,Content-Lengthheaders.
Deferred to v0.2+
- HTTPS / TLS via
rustlsbehind a feature flag. - Connection keep-alive / pooling.
- Chunked transfer encoding (we rely on
Connection: close+ read-to-EOF). - Redirects, cookies, streaming bodies.
- Async API.
License
MIT OR Apache-2.0