Skip to main content

Module server

Module server 

Available on crate feature net only.
Expand description

Http server utility types and services.

  • HttpPeekRouter allows you to detect http/1x and h2 traffic. H3 traffic is not covered by this router as this is done via sidechannel information instead (e.g. ALPN in TLS).

Modules§

peek
types and logic for HttpPeekRouter

Structs§

HttpPeekConfig
Resource limits used while detecting HTTP on a byte stream.
HttpPeekRouter
A Service router that can be used to support http/1x and h2 traffic as well as non-tls traffic.
NoHttpRejectError
non-http connection is rejected

Enums§

HttpPeekVersion

Constants§

DEFAULT_HTTP1_REQUEST_LINE_MAX_SIZE
Default maximum number of bytes inspected for an HTTP/1 request-line.
DEFAULT_HTTP_PEEK_READ_BUFFER_SIZE
Default maximum number of bytes requested from the transport per peek read.

Functions§

peek_http_input
Detect HTTP using HttpPeekConfig::default and return an input that replays every byte consumed during detection.
peek_http_input_with_config
Detect HTTP using explicit resource limits and return an input that replays every byte consumed during detection.

Type Aliases§

HttpPrefixedIo
PrefixedIo alias used by HttpPeekRouter.