trait AsyncClient extends AsyncClientCompat with HttpClientFactory[AsyncClient] with AutoCloseable
A standard async http client interface for Rx[_]
- Alphabetic
- By Inheritance
- AsyncClient
- AutoCloseable
- HttpClientFactory
- AsyncClientCompat
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def build(newConfig: HttpClientConfig): AsyncClient
Create a new client sharing the same underlying http client
Create a new client sharing the same underlying http client
- Attributes
- protected
- Definition Classes
- HttpClientFactory
- abstract def channel: HttpChannel
- Attributes
- protected
- abstract def config: HttpClientConfig
- Definition Classes
- AsyncClient → HttpClientFactory
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- macro def call[Req, Resp](request: Request, requestContent: Req): Rx[Resp]
- Definition Classes
- AsyncClientCompat
- def callInternal[Req, Resp](req: Request, requestSurface: Surface, responseSurface: Surface, requestContent: Req): Rx[Resp]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def close(): Unit
- Definition Classes
- AsyncClient → AutoCloseable
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- macro def readAs[Resp](request: Request): Rx[Resp]
Read the response as a specified type
Read the response as a specified type
- returns
a response translated to the specified type
- Definition Classes
- AsyncClientCompat
- def readAsInternal[Resp](req: Request, responseSurface: Surface): Rx[Resp]
- def rpc[Req, Resp](method: RPCMethod, requestContent: Req): Rx[Resp]
- Exceptions thrown
RPCException
when RPC request fails
- def send(req: Request, context: HttpClientContext = HttpClientContext.empty): Rx[Response]
Send an HTTP request and get the response in Rx[Response] type.
Send an HTTP request and get the response in Rx[Response] type.
It will return
Rx[HttpClientException]
for non-successful responses. For example, when receiving non-retryable status code (e.g., 4xx), it will return Rx[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 Rx[HttpClientMaxRetryException].
- def sendSafe(req: Request, context: HttpClientContext = HttpClientContext.empty): Rx[Response]
Send an HTTP request and returns a response (or the last response if the request is retried)
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withCircuitBreaker(filter: (CircuitBreaker) => CircuitBreaker): AsyncClient
- Definition Classes
- HttpClientFactory
- def withClientFilter(filter: RxHttpFilter): AsyncClient
- Definition Classes
- HttpClientFactory
- def withClientFilter(filter: HttpClientFilter): AsyncClient
- Definition Classes
- HttpClientFactory
- def withConfig(filter: (HttpClientConfig) => HttpClientConfig): AsyncClient
- Definition Classes
- HttpClientFactory
- def withConnectTimeout(duration: Duration): AsyncClient
- Definition Classes
- HttpClientFactory
- def withRPCEncoding(rpcEncoding: RPCEncoding): AsyncClient
- Definition Classes
- HttpClientFactory
- def withReadTimeout(duration: Duration): AsyncClient
- Definition Classes
- HttpClientFactory
- def withRequestFilter(requestFilter: (Request) => Request): AsyncClient
- Definition Classes
- HttpClientFactory
- def withResponseFilter(responseFilter: (Response) => Response): AsyncClient
- Definition Classes
- HttpClientFactory
- def withRetryContext(filter: (RetryContext) => RetryContext): AsyncClient
- Definition Classes
- HttpClientFactory
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
- Deprecated