Std.Http.Server.Resilience
5 public declarations
- enforceInitcwndBudget
&Bytes -> Int -> Result[Bytes, Str]Enforces that an early flush payload fits strictly within the TCP initial congestion window (initcwnd).
- inspectClientNetwork
&Array[(Str, Str)] -> Std.Http.Server.Resilience.NetworkProfileInspects request headers for Client Hints and data-saving directives.
- NetworkProfile
Classification of client connection constraints.
- selectAdaptivePayload
&Std.Http.Server.Resilience.NetworkProfile -> &Bytes -> &Bytes -> BytesSelects lightweight minimal markup on poor connections and full markup on broadband.
- swrHeaders
Int -> Int -> &Array[Str] -> Array[(Str, Str)]Constructs RFC 5861 `stale-while-revalidate` Cache-Control directives and optional cache tags.
