class AsyncClientImpl extends AsyncClient
- Alphabetic
- By Inheritance
- AsyncClientImpl
- AsyncClient
- AutoCloseable
- HttpClientFactory
- AsyncClientCompat
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new AsyncClientImpl(channel: HttpChannel, config: HttpClientConfig)
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
-
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
- AsyncClientImpl → HttpClientFactory
-
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]
- Definition Classes
- AsyncClient
-
val
channel: HttpChannel
- Attributes
- protected
- Definition Classes
- AsyncClientImpl → AsyncClient
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
close(): Unit
- Definition Classes
- AsyncClientImpl → AsyncClient → AutoCloseable
-
val
config: HttpClientConfig
- Definition Classes
- AsyncClientImpl → AsyncClient → HttpClientFactory
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- 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]
- Definition Classes
- AsyncClient
-
def
rpc[Req, Resp](method: RPCMethod, requestContent: Req): Rx[Resp]
- Definition Classes
- AsyncClient
- Exceptions thrown
RPCExceptionwhen 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].
- Definition Classes
- AsyncClient
-
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)
Send an HTTP request and returns a response (or the last response if the request is retried)
- Definition Classes
- AsyncClient
-
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( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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
withReadTimeout(duration: Duration): AsyncClient
- Definition Classes
- HttpClientFactory
-
def
withRequestFilter(requestFilter: (Request) ⇒ Request): 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