Repository navigation
Test case-sensitive HTTP/1.1 custom method round trips - #1701
Merged
Merged
Conversation
Motivation: HTTP method names are case-sensitive. The existing custom method example covers a single uppercase name but not two case variants. Modification: Register two distinct custom methods and send modeled requests over one HTTP/1.1 loopback connection. Drain the entities and verify the exact method names observed by the server against the original names. Result: The test covers the client renderer and server parser together. No production behavior or defaults change. Tests: - Stock http-core Test ClientServerSpec focused case: 1 passed on Scala 2.13.18 and 1 passed on Scala 3.3.9 using Temurin 17. - http-core / Test / scalafmtCheck and git diff --check passed. References: RFC 9110, section 9.1. Refs apache#1477 (adjacent QUERY parser coverage).
He-Pin
marked this pull request as ready for review
November 27, 2026 09:09
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
HTTP method names are case-sensitive. Existing custom method examples exercise one uppercase token but do not round-trip two registered case variants.
Modification
Register two names that differ only in case and send one modeled request for each over the same HTTP/1.1 loopback connection. Assert the exact names observed by the server and clean up the connection.
Result
The test covers the client renderer and server parser together without changing production behavior.
Tests
The focused ClientServerSpec case passed with stock project sbt on Temurin JDK 17 on both Scala 2.13.18 and Scala 3.3.9. Test formatting passed.
References
RFC 9110 §9.1; #1477 covers separate QUERY parser behavior.