pjfanning opened a new issue, #1180: URL: https://github.com/apache/pekko-http/issues/1180
I am working on fixing some of this but some issues look like they need improvements in our APIs to facilitate npt needing Scala DSL or Scala lib classes in some places in Java samples. So far, Java users need to extend the ScalaDSL CustomHeader class or use RawHeader. https://github.com/apache/pekko-http/blob/d5f56da907257296f0399cc3ce027c4be5d7671d/http-tests/src/test/java/org/apache/pekko/http/javadsl/server/JavaRouteTest.java#L32-L33 Scala Either used in JavaDSL authenticateOrRejectWithChallenge. Java does provide an easy replacement and our sample code that demos this shows that the Scala Either, Left and Right classes are easy to use from Java. example: https://github.com/apache/pekko-http/blob/d5f56da907257296f0399cc3ce027c4be5d7671d/docs/src/test/java/docs/http/javadsl/server/directives/SecurityDirectivesExamplesTest.java#L320-L328 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
