| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Extend NettyRequestFactory's known header-name table with prebuilt Train-Case AsciiString instances for the common headers already covered by lowercase Netty constants. This lets caller-supplied names such as Content-Type and Authorization take the HttpHeadersEncoder bulk-copy path while preserving on-wire casing. Odd casing and custom header names still miss the table and pass through unchanged. Update focused interning tests for Train-Case interning and odd-casing passthrough. Codex on behalf of Pavel Ptashyts Co-Authored-By: Codex <codex@openai.com>
| Back | FazBrowse Home | New Git URL |
Summary
Rationale
NettyRequestFactory already interns known lowercase header names so HttpHeadersEncoder can bulk-copy AsciiString bytes on the event loop. Real request code often supplies names such as Content-Type and Authorization in Train-Case, which previously missed the table and fell back to per-character encoding. Adding same-spelling AsciiString entries preserves wire casing while putting those common names on the same fast path.
Validation
Attribution
Codex on behalf of Pavel Ptashyts