c

wvlet.airframe.http.client

AsyncClientImpl

class AsyncClientImpl extends AsyncClient

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AsyncClientImpl
  2. AsyncClient
  3. AutoCloseable
  4. HttpClientFactory
  5. AsyncClientCompat
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AsyncClientImpl(channel: HttpChannel, config: HttpClientConfig)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. 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
    AsyncClientImplHttpClientFactory
  6. macro def call[Req, Resp](request: Request, requestContent: Req): Rx[Resp]
    Definition Classes
    AsyncClientCompat
  7. def callInternal[Req, Resp](req: Request, requestSurface: Surface, responseSurface: Surface, requestContent: Req): Rx[Resp]
    Definition Classes
    AsyncClient
  8. val channel: HttpChannel
    Attributes
    protected
    Definition Classes
    AsyncClientImplAsyncClient
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  10. def close(): Unit
    Definition Classes
    AsyncClientImplAsyncClient → AutoCloseable
  11. val config: HttpClientConfig
    Definition Classes
    AsyncClientImplAsyncClientHttpClientFactory
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. 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
  21. def readAsInternal[Resp](req: Request, responseSurface: Surface): Rx[Resp]
    Definition Classes
    AsyncClient
  22. def rpc[Req, Resp](method: RPCMethod, requestContent: Req): Rx[Resp]

    Definition Classes
    AsyncClient
    Exceptions thrown

    RPCException when RPC request fails

  23. 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
  24. 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
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. def withCircuitBreaker(filter: (CircuitBreaker) ⇒ CircuitBreaker): AsyncClient
    Definition Classes
    HttpClientFactory
  31. def withClientFilter(filter: RxHttpFilter): AsyncClient
    Definition Classes
    HttpClientFactory
  32. def withClientFilter(filter: HttpClientFilter): AsyncClient
    Definition Classes
    HttpClientFactory
  33. def withConfig(filter: (HttpClientConfig) ⇒ HttpClientConfig): AsyncClient
    Definition Classes
    HttpClientFactory
  34. def withConnectTimeout(duration: Duration): AsyncClient
    Definition Classes
    HttpClientFactory
  35. def withReadTimeout(duration: Duration): AsyncClient
    Definition Classes
    HttpClientFactory
  36. def withRequestFilter(requestFilter: (Request) ⇒ Request): AsyncClient
    Definition Classes
    HttpClientFactory
  37. def withRetryContext(filter: (RetryContext) ⇒ RetryContext): AsyncClient
    Definition Classes
    HttpClientFactory

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AsyncClient

Inherited from AutoCloseable

Inherited from HttpClientFactory[AsyncClient]

Inherited from AsyncClientCompat

Inherited from AnyRef

Inherited from Any

Ungrouped