AsyncClient
A standard async http client interface for Scala Future
trait AutoCloseable
trait ClientFactory[AsyncClient]
trait AsyncClientCompat
class Object
trait Matchable
class Any
class AsyncClientImpl
Value members
Concrete methods
def callInternal[Req, Resp](req: Request, requestSurface: Surface, responseSurface: Surface, requestContent: Req): Future[Resp]
Send an HTTP request and get the response in Scala Future type.
Send an HTTP request and get the response in Scala Future type.
It will return Future[HttpClientException]
for non-successful responses. For example, when receiving
non-retryable status code (e.g., 4xx), it will return Future[HttpClientException]. For server side failures (5xx
responses), this continues request retry until the max retry count.
If it exceeds the number of max retry attempts, it will return Future[HttpClientMaxRetryException].
Inherited methods
Create a new client sharing the same underlying http client
Create a new client sharing the same underlying http client
- Inherited from:
- ClientFactory