Skip to main content

Crate nexus_web

Crate nexus_web 

Source
Expand description

nexus-web — low-latency web protocol primitives.

Sans-IO protocol implementations that operate on byte slices. No async runtime, no I/O layer — pure protocol state machines.

Extracted from nexus-net 0.7.x. Protocol code moved here; networking primitives (buffers, TLS, wire abstractions) remain in nexus-net and are re-exported below.

§Modules

  • ws — WebSocket framing (RFC 6455)
  • http — HTTP/1.1 response parsing, chunked decoding, request/response writers
  • rest — HTTP/1.1 REST client (RequestWriter, Client, typestate builder)

§Primitives

Buffer types, TLS, and wire abstractions live in nexus-net and are re-exported here for convenience.

Modules§

buf
Buffer primitives for network protocol parsing and framing.
http
Sans-IO HTTP/1.x protocol primitives.
maybe_tls
Stream that may or may not be wrapped in TLS (sync only).
rest
Sans-IO HTTP/1.1 REST primitives + transport.
tls
TLS codec — sans-IO encrypt/decrypt via rustls.
wire
Composition seam between transports and parsers.
ws
WebSocket framing — sans-IO encode/decode per RFC 6455.

Enums§

MaybeTls
A stream that may or may not be wrapped in TLS.

Traits§

ParserSink
Parser-side buffer that a WireStream fills.
WireStream
A bidirectional byte-level stream that fills a parser’s buffer.