Expand description
Acceptors used by the stream-based and WebSocket backends.
Accepting is split in two phases so the accept loop never blocks on
a handshake: accept does the kernel accept, handle runs the
TLS/WS handshake and hands the split halves to the server. The loop
runs handle off to a separate task.
Structsยง
- Stream
Acceptor ๐ - Byte-stream acceptor, with an optional TLS handshake.
- WsAcceptor ๐
- WebSocket acceptor, with an optional TLS handshake for
wss://.
Traitsยง
- Async
Acceptor ๐ - Accepts raw streams and upgrades/handles them.
- Stream
Listener ๐ - A listener that produces byte streams.