nlpersimon opened a new issue, #364: URL: https://github.com/apache/incubator-pekko-http/issues/364
Hi, I have a question regarding to the difference between http and http/2 client API. From the documentation of [Host-Level Client-Side API](https://nightlies.apache.org/pekko/docs/pekko-http/1.0/docs/client-side/host-level.html#using-a-host-connection-pool), the library gives me a flow in type `[Flow[(HttpRequest, T), (Try[HttpResponse], T), HostConnectionPool]]`. To my understanding, the `Try[HttpResponse]` means that the request will not necessarily be processed by the library successfully, and I'll need to catch exceptions, which does make sense to me. However, the documentation of [Client-Side HTTP/2](https://nightlies.apache.org/pekko/docs/pekko-http/1.0/docs/client-side/http2.html#request-response-ordering) says that the library gives me a flow in type `Flow[HttpRequest, HttpResponse, Any]`. Does that mean a request is guaranteed to obtain a response, and all the exceptions are somehow handled from the library side? Thank you! -- 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]
