pjfanning commented on PR #1376: URL: https://github.com/apache/pekko-http/pull/1376#issuecomment-6419076829
@He-Pin good point, changed in 20b26db4d. `fold` and `handle` now take `org.apache.pekko.japi.function.Function` / `Function2`, the same as the Pekko Streams javadsl, so handlers can throw checked exceptions. That matters because `fold` will usually be called from inside a stream stage like `.map(...)`. The exceptions are rethrown unchanged. `HttpResponseResult` has not been released yet, so this has no compatibility impact. `HttpResponseResultTest` has a new case that throws an `IOException` from both `fold` and `handle`. -- 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]
