Skip to main content

Module ext

Module ext 

Available on crate features http and std only.
Expand description

Message extensions shared by the HTTP protocol versions.

Structs§

HttpDatagrams
Declares that a message’s upgrade token defines HTTP Datagram semantics (RFC 9297 §2).
InvalidProtocol
:protocol pseudo-header value is not a non-empty HTTP token
Protocol
An HTTP upgrade token: the :protocol pseudo-header of Extended CONNECT on HTTP/2 (RFC 8441) and HTTP/3 (RFC 9220), or the HTTP/1.1 Upgrade token it replaces.

Functions§

extended_connect_pseudo_scheme
The :scheme pseudo-header value of a request carrying :protocol (Extended CONNECT).
sends_empty_path
Whether an HTTP/2 or HTTP/3 request for uri sends an empty :path: only a target without path and query whose :scheme on the wire, wire_scheme (after extended_connect_pseudo_scheme), is not http(s), which turn a missing path into / (RFC 9113 §8.3.1, RFC 9114 §4.3.1). A query is always sent, after a /.