trait AsyncClient extends AsyncClientCompat with HttpClientFactory[AsyncClient] with AutoCloseable with LogSupport

A standard async http client interface for Rx[_]

Linear Supertypes
LogSupport, LazyLogger, LoggingMethods, Serializable, Serializable, AutoCloseable, HttpClientFactory[AsyncClient], AsyncClientCompat, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AsyncClient
  2. LogSupport
  3. LazyLogger
  4. LoggingMethods
  5. Serializable
  6. Serializable
  7. AutoCloseable
  8. HttpClientFactory
  9. AsyncClientCompat
  10. AnyRef
  11. 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
    HttpClientFactory
  2. abstract def channel: HttpChannel
    Attributes
    protected
  3. abstract def config: HttpClientConfig
    Definition Classes
    AsyncClientHttpClientFactory

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() @IntrinsicCandidate()
  8. def close(): Unit
    Definition Classes
    AsyncClient → AutoCloseable
  9. macro def debug(message: Any, cause: Throwable): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  10. macro def debug(message: Any): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. macro def error(message: Any, cause: Throwable): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  14. macro def error(message: Any): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  17. macro def info(message: Any, cause: Throwable): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  18. macro def info(message: Any): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. macro def logAt(logLevel: LogLevel, message: Any): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  21. lazy val logger: Logger
    Attributes
    protected[this]
    Definition Classes
    LazyLogger
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  25. 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
  26. def readAsInternal[Resp](req: Request, responseSurface: Surface): Rx[Resp]
  27. def rpc[Req, Resp](method: RPCMethod, requestContent: Req): Rx[Resp]

    returns

    Rx of the response. If the RPC request fails, Rx[RPCException] will be returned.

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

  29. 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)

  30. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. macro def trace(message: Any, cause: Throwable): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  33. macro def trace(message: Any): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. macro def warn(message: Any, cause: Throwable): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  38. macro def warn(message: Any): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  39. def withCircuitBreaker(filter: (CircuitBreaker) ⇒ CircuitBreaker): AsyncClient
    Definition Classes
    HttpClientFactory
  40. def withClientFilter(filter: RxHttpFilter): AsyncClient
    Definition Classes
    HttpClientFactory
  41. def withConfig(filter: (HttpClientConfig) ⇒ HttpClientConfig): AsyncClient
    Definition Classes
    HttpClientFactory
  42. def withConnectTimeout(duration: Duration): AsyncClient
    Definition Classes
    HttpClientFactory
  43. def withRPCEncoding(rpcEncoding: RPCEncoding): AsyncClient
    Definition Classes
    HttpClientFactory
  44. def withReadTimeout(duration: Duration): AsyncClient
    Definition Classes
    HttpClientFactory
  45. def withRequestFilter(requestFilter: (Request) ⇒ Request): AsyncClient
    Definition Classes
    HttpClientFactory
  46. def withResponseFilter(responseFilter: (Response) ⇒ Response): AsyncClient
    Definition Classes
    HttpClientFactory
  47. 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 LogSupport

Inherited from LazyLogger

Inherited from LoggingMethods

Inherited from Serializable

Inherited from Serializable

Inherited from AutoCloseable

Inherited from HttpClientFactory[AsyncClient]

Inherited from AsyncClientCompat

Inherited from AnyRef

Inherited from Any

Ungrouped