test: verify repeated Accept-Query headers are available to clients (#1975) Motivation: A response can advertise multiple QUERY media ranges across repeated field lines. A singular modeled lookup exposes only the first line. Modification: Document the plural Scala and Java accessors and test real HTTP/1.1 modeled and raw field views. Preserve the cache metadata and Accept-Ranges tests already present on main when resolving the test insertion conflict. Result: All three targeted HTTP/1.1 loopback cases passed on Scala 2.13.18 and 3.3.9 (JDK 21) after rebasing. Scala test formatting passed. No production code, public API, parser, or raw fallback behavior changes. References: https://github.com/apache/pekko-http/pull/1975#pullrequestreview-6152197469 https://www.rfc-editor.org/rfc/rfc10008.html#section-3 https://www.rfc-editor.org/rfc/rfc9110.html#section-5.3 * docs: clarify repeated modeled and raw response fields Motivation: The guide reads as if Accept-Query were special and does not name the typed single-header lookup or explain raw fallback. Modification: Describe the per-line model, show the Scala and Java typed accessors, and explain when to filter the full header list by name. Result: The existing HTTP/1.1 behavior and regression test are unchanged. The documentation distinguishes typed results from retained raw field lines. References: Apache Pekko HTTP #1975; RFC 10008 section 3.
The Pekko HTTP modules implement a full server- and client-side HTTP stack on top of pekko-actor and pekko-stream. It's not a web-framework but rather a more general toolkit for providing and consuming HTTP-based services. While interaction with a browser is of course also in scope it is not the primary focus of Pekko HTTP.
Pekko HTTP is a fork of Akka HTTP 10.2.x release, prior to the Akka project's adoption of the Business Source License.
Pekko HTTP follows a rather open design and many times offers several different API levels for “doing the same thing”. You get to pick the API level of abstraction that is most suitable for your application. This means that, if you have trouble achieving something using a high-level API, there's a good chance that you can get it done with a low-level API, which offers more flexibility but might require you to write more application code.
The documentation is available at pekko.apache.org, for Scala and Java.
Some tests for HTTP/2 compliance use h2spec. The sbt build downloads pre-built binaries from the GitHub releases page for the h2spec project. These binaries are not available for all operating systems. Apple Mac Silicon users may need to install Rosetta if they do not have it installed already.
build.sbt in this directory)sbt compile compiles the main source for project default version of Scala (2.13)sbt +compile will compile for all supported versions of Scalasbt test will compile the code and run the unit testssbt testQuick similar to test but when repeated in shell mode will only run failing testssbt package will build the jarshttp-core/target/scala-2.13/sbt publishLocal will push the jars to your local Apache Ivy repositorysbt publishM2 will push the jars to your local Apache Maven repositorysbt docs/paradox will build the docs (the ones describing the module features)sbt docs/paradoxBrowse does the same but will open the docs in your browser when completeindex.html file will appear in target/paradox/site/main/sbt unidoc will build the Javadocs for all the modules and load them to one place (may require Graphviz, see Prerequisites above)index.html file will appear in target/scala-2.13/unidoc/sbt sourceDistGenerate will generate source release to target/dist/sbt "set ThisBuild / version := \"1.0.0\"; sourceDistGenerate"version.sbt to the same directory that has the build.sbt containing something likeThisBuild / version := "1.0.0"If you have questions about the contribution process or discuss specific issues, please interact with the community using the following resources.
Contributions are very welcome!
If you see an issue that you'd like to see fixed, the best way to make it happen is to help out by submitting a pull request. For ideas of where to contribute, tickets marked as “help wanted” are a good starting point.
Refer to the CONTRIBUTING.md file for more details about the workflow, and general hints on how to prepare your pull request. You can also ask for clarifications or guidance in GitHub issues directly.
Apache Pekko HTTP is Open Source and available under the Apache 2 License.