Repository navigation
Register application/zstd media type - #1454
Merged
Merged
Conversation
pjfanning
reviewed
Nov 17, 2026
pjfanning
left a comment
Member
There was a problem hiding this comment.
Thanks, this looks good. application/zstd with .zst, binary and NotCompressible, matches the existing archive types, and adding the Scala val and Java constant is binary compatible.
Minor, same as on #1437: the API-constant and ContentType.parse checks would fit better in an http-core model test than at the top of FileAndResourceDirectivesSpec; the resolver cases are the routing-relevant part. Not blocking.
He-Pin
added a commit
to He-Pin/incubator-pekko-http
that referenced
this pull request
Nov 17, 2026
Motivation: The default file resolver lacks the registered WebAssembly and AVIF media types. Updating the PR onto current main conflicts with the newly merged application/zstd resolver tests. Modification: Register the Scala and Java media types and their file extensions. Preserve both the zstd and WebAssembly/AVIF test groups when rebasing onto main. Result: The rebased change retains both independent media-type additions without removing existing registrations or regression coverage. Tests: - Rebase diff contains only the original three files and 29 inserted lines. - Reconciled zstd test block is unchanged; both test groups are retained. - git diff --check passed. - Runtime tests were not rerun: JAVA_HOME is unset and javac is unavailable. - Earlier PR test results do not establish validation of this combined tree. - CI was not inspected. References: Refs apache#1437, apache#1454.
pjfanning
added a commit
that referenced
this pull request
Nov 19, 2026
Motivation: Several recently merged PRs left review points unaddressed: docs that were asked to be dropped, comments and tests that were suggested, and small API and internal tidy-ups. Modification: - Add a Scala FilenameEncoding alias and values to Multipart.FormData and use them in the Scala toEntity signature and tests (#1494). - Render the form-data Content-Disposition header directly instead of rendering it twice and slicing off the prefix (#1494). - Drop the docs paragraph about unpaired URI surrogates (#1426) and the cookie -0000 sentence in request-level.md (#1493). - Fix the javadsl Multipart.FormData doc the same way #1483 fixed the scaladsl one. - Comment the cookie date rule copies so they stay in sync (#1458). - Test custom methods starting with Q next to the QUERY fast path (#1477). - Use one root package import and a dilated timeout in HeaderCompressionSpec (#1438). - Pass isTrailer to HttpMessageRendering.renderHeaders explicitly (#1463). - Remove the unused forwarding overloads in Handshake.Client and EnabledPingState (#1436, #1462). - Move the media type model checks from the routing spec to a new http-core MediaTypesSpec (#1437, #1454). - Hash the WebSocket key without String.valueOf (#1439). Result: The review points are addressed. The only public API change is the added Scala FilenameEncoding alias. Tests: - http-core/testOnly MultipartSpec MultipartsSpec MediaTypesSpec RequestParserCRLFSpec RequestParserLFSpec HeaderCompressionSpec WebSocketClientSpec HeaderSpec HttpHeaderSpec: 314 passed - http2-tests/testOnly HttpMessageRenderingSpec Http2PingSchedulingSpec: 38 passed - http-tests/testOnly FileAndResourceDirectivesSpec: 63 passed - http-core/mimaReportBinaryIssues: passed References: Refs #1426, #1436, #1437, #1438, #1439, #1454, #1458, #1462, #1463, #1477, #1483, #1493, #1494
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Register the IANA
application/zstdmedia type and its.zstextension, so the default content-type resolver recognizes Zstandard-compressed files.Modification
.zstto it and mark the already-compressed formatNotCompressible, following the existing archive media types.archive.tar.zst/.ZSTwithout a charset.Result
A standards-registry addition, not a new codec. This does not add dependencies, set
Content-Encoding, or change available/default content codings. The compressibility flag is the library's default policy for this compressed format, not a claim that further compression is impossible.Tests
FileAndResourceDirectivesSpec: 60 passed (60 distinct tests, 66 passing executions including focused runs).scalafmtCheckAll,javafmtCheckAll,+headerCheckAll,http-core/mimaReportBinaryIssuesandgit diff --check: passed.References
IANA application/zstd registration and RFC 8878. Netty's existing media-type literal prompted this independent registry comparison; no implementation copied.