AsyncClient
wvlet.airframe.http.client.AsyncClient
A standard async http client interface for Scala Future
Attributes
- Graph
- Supertypes
- trait AutoCloseabletrait ClientFactory[AsyncClient]trait AsyncClientCompatclass Objecttrait Matchableclass Any
- Known subtypes
- class AsyncClientImpl
Members list
Concise view
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].
Attributes
Inherited methods
Create a new client sharing the same underlying http client
Attributes
- Inherited from:
- AsyncClientCompat
Attributes
- Inherited from:
- AutoCloseable
Attributes
- Inherited from:
- AsyncClientCompat
Attributes
- Inherited from:
- ClientFactory
Attributes
- Inherited from:
- ClientFactory
Attributes
- Inherited from:
- ClientFactory
Attributes
- Inherited from:
- ClientFactory
Attributes
- Inherited from:
- ClientFactory
Attributes
- Inherited from:
- ClientFactory
Attributes
- Inherited from:
- ClientFactory