Expand description
A representation of Sōzu’s state
Structs§
- Certificate
Metadata - Runtime selection metadata attached to one stored TLS certificate.
- Certificate
Metadata Index - Metadata for every certificate on one listener address.
- Config
State - The
ConfigStaterepresents the state of Sōzu’s business, which is to forward traffic from frontends to backends. Hence, it contains all details about:
Enums§
Functions§
- merge_
custom_ http_ answers - Merge a
CustomHttpAnswerspatch into the listener’s stored answers, preserving any field not present in the patch. - rollback_
request - Build the unambiguous inverse of a mutating request.
- validate_
alpn_ protocols - Validate an
AlpnProtocolspatch: each value must be “h2” or “http/1.1”. Empty values vec is allowed (reset-to-default). - validate_
forwarded_ headers - Validate a
forwarded_headerswire value: it must name aForwardedHeadersvariant. prost decodes an unknown enum number into the rawi32, and the listener getter would silently read it as the default; a patch carrying one is refused instead. - validate_
h2_ flood_ knobs_ http - Validate all H2 flood knobs in an HTTP listener patch.
- validate_
h2_ flood_ knobs_ http_ listener - Validate the H2 knobs of a complete HTTP listener configuration, on the
AddHttpListenerpath (sozu-proxy/sozu#1418). - validate_
h2_ flood_ knobs_ https - Validate all H2 flood knobs in an HTTPS listener patch (same rules as HTTP).
- validate_
h2_ flood_ knobs_ https_ listener - Validate the H2 knobs of a complete HTTPS listener configuration, on the
AddHttpsListenerpath (same rules asvalidate_h2_flood_knobs_http_listener). - validate_
hsts_ patch - Validate the
hstsblock of anUpdateHttpsListenerConfigpatch: it replaces the listener default whole, andenabledis what tells “disable” from “enable”, so a block without it is refused — on the main process here, on the worker withListenerError::HstsEnabledRequired. - validate_
sozu_ id_ header - Validate a
sozu_id_headervalue against the RFC 9110 §5.1tokengrammar:
Type Aliases§
- Cluster
Id - To use throughout Sōzu