trait AsyncClient extends AsyncClientCompat with ClientFactory[AsyncClient] with AutoCloseable

A standard async http client interface for Scala Future

Linear Supertypes
AutoCloseable, ClientFactory[AsyncClient], AsyncClientCompat, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AsyncClient
  2. AutoCloseable
  3. ClientFactory
  4. AsyncClientCompat
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. 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
    ClientFactory
  2. abstract def channel: HttpChannel
    Attributes
    protected
  3. abstract def close(): Unit
    Definition Classes
    AutoCloseable
    Annotations
    @throws( classOf[java.lang.Exception] )
  4. abstract def config: HttpClientConfig
    Definition Classes
    AsyncClientClientFactory

Concrete 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. macro def call[Req, Resp](request: Request, requestContent: Req): Rx[Resp]
    Definition Classes
    AsyncClientCompat
  6. def callInternal[Req, Resp](req: Request, requestSurface: Surface, responseSurface: Surface, requestContent: Req): Rx[Resp]
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. 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
  17. def readAsInternal[Resp](req: Request, responseSurface: Surface): Rx[Resp]
  18. def rpc[Req, Resp](method: RPCMethod, requestContent: Req): Rx[Resp]
  19. def send(req: Request): Rx[Response]

    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].

  20. def sendSafe(req: Request): Rx[Response]

    Send an HTTP request and returns a response (or the last response if the request is retried)

  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. def withCircuitBreaker(filter: (CircuitBreaker) ⇒ CircuitBreaker): AsyncClient
    Definition Classes
    ClientFactory
  27. def withClientFilter(filter: ClientFilter): AsyncClient
    Definition Classes
    ClientFactory
  28. def withConfig(filter: (HttpClientConfig) ⇒ HttpClientConfig): AsyncClient
    Definition Classes
    ClientFactory
  29. def withConnectTimeout(duration: Duration): AsyncClient
    Definition Classes
    ClientFactory
  30. def withReadTimeout(duration: Duration): AsyncClient
    Definition Classes
    ClientFactory
  31. def withRequestFilter(requestFilter: (Request) ⇒ Request): AsyncClient
    Definition Classes
    ClientFactory
  32. def withRetryContext(filter: (RetryContext) ⇒ RetryContext): AsyncClient
    Definition Classes
    ClientFactory

Deprecated Value Members

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

Inherited from AutoCloseable

Inherited from ClientFactory[AsyncClient]

Inherited from AsyncClientCompat

Inherited from AnyRef

Inherited from Any

Ungrouped