The GitHub Actions job "Validate and test" on 
pekko-http.git/trailer-java-iterable has succeeded.
Run started by GitHub user pjfanning (triggered by pjfanning).

Head commit for run:
72dbcf71df53dab7c8a4a6edc2c019990e996986 / PJ Fanning 
<[email protected]>
add java.lang.Iterable overloads to Trailer.addHeaders and withHeaders

Motivation:
The Java DSL Trailer.addHeaders and withHeaders only accept a
scala.collection.Iterable, which Java users cannot easily build, so adding
several HTTP/2 trailer headers from Java needs repeated addHeader calls.

Modification:
Add java.lang.Iterable overloads of addHeaders and withHeaders to the
javadsl Trailer trait, delegating to the existing methods. The scaladsl
Trailer overrides them to keep its more specific return type.

Result:
Java users can pass a java.util.List of headers to Trailer.addHeaders and
Trailer.withHeaders.

Tests:
- sbt "http-core/Test/testOnly org.apache.pekko.http.javadsl.model.TrailerTest" 
- passed
- sbt http-core/mimaReportBinaryIssues - passed
- sbt http-core/scalafmt, http-core/Test/javafmt - formatted new test

References:
None - Java DSL cleanup of Scala types in public API

Report URL: https://github.com/apache/pekko-http/actions/runs/40179016075

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to