You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 47450fa
Browse filesBrowse the repository at this point in the historyBrowse files
refactor: Collapse the duplicated gzip decision in the renderer
All three render paths repeated the same guard — already coded, not
compressible, or a status that carries no content — then announced Vary,
then checked threshold and Accept-Encoding. That is now one
shouldCompress method the three paths share, with a negative length
meaning "unknown, treat as over the threshold" so streams keep their
semantics.
Also drops the single-argument ResponseRenderer constructor, which no
longer had a caller in main, and trims incidental weight in the header
parsers: the boxed tri-state in AcceptEncodingHeader becomes two plain
booleans, the compressible-suffix Set becomes three endsWith calls, and
single-use string constants are inlined to match ContentTypeHeader.
530 to 498 lines across the five files; behaviour unchanged.
0 commit comments