c

wvlet.airframe.http.client

HttpClientConfig

case class HttpClientConfig(name: String = "default", backend: HttpClientBackend = Compat.defaultHttpClientBackend, requestFilter: (Request) ⇒ Request = identity, rpcEncoding: RPCEncoding = RPCEncoding.JSON, retryContext: RetryContext = ..., codecFactory: MessageCodecFactory = ..., circuitBreaker: CircuitBreaker = ..., connectTimeout: Duration = Duration(90, TimeUnit.SECONDS), readTimeout: Duration = Duration(90, TimeUnit.SECONDS), clientFilter: HttpClientFilter = HttpClientFilter.identity, httpLoggerConfig: HttpLoggerConfig = ..., httpLoggerProvider: (HttpLoggerConfig) ⇒ HttpLogger = ..., loggingFilter: (HttpLogger) ⇒ HttpClientFilter = ...) extends HttpChannelConfig with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, HttpChannelConfig, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HttpClientConfig
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. HttpChannelConfig
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HttpClientConfig(name: String = "default", backend: HttpClientBackend = Compat.defaultHttpClientBackend, requestFilter: (Request) ⇒ Request = identity, rpcEncoding: RPCEncoding = RPCEncoding.JSON, retryContext: RetryContext = ..., codecFactory: MessageCodecFactory = ..., circuitBreaker: CircuitBreaker = ..., connectTimeout: Duration = Duration(90, TimeUnit.SECONDS), readTimeout: Duration = Duration(90, TimeUnit.SECONDS), clientFilter: HttpClientFilter = HttpClientFilter.identity, httpLoggerConfig: HttpLoggerConfig = ..., httpLoggerProvider: (HttpLoggerConfig) ⇒ HttpLogger = ..., loggingFilter: (HttpLogger) ⇒ HttpClientFilter = ...)

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. val backend: HttpClientBackend
  6. val circuitBreaker: CircuitBreaker
  7. val clientFilter: HttpClientFilter
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  9. val codecFactory: MessageCodecFactory
  10. val connectTimeout: Duration
    Definition Classes
    HttpClientConfigHttpChannelConfig
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. val httpLoggerConfig: HttpLoggerConfig
  14. val httpLoggerProvider: (HttpLoggerConfig) ⇒ HttpLogger
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. val loggingFilter: (HttpLogger) ⇒ HttpClientFilter
  17. val name: String
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def newAsyncClient(serverAddress: String): AsyncClient
  20. def newHttpLogger: HttpLogger
  21. def newJSClient: AsyncClient

    Create a default Async client for Scala.js in web browsers

  22. def newLoggingFilter(logger: HttpLogger): HttpClientFilter
  23. def newSyncClient(serverAddress: String): SyncClient
  24. def noCircuitBreaker: HttpClientConfig
  25. def noClientFilter: HttpClientConfig

    Remove any client-side filter

  26. def noLogging: HttpClientConfig

    Disable http-client side logging

  27. def noRequestFilter: HttpClientConfig
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  30. val readTimeout: Duration
    Definition Classes
    HttpClientConfigHttpChannelConfig
  31. val requestFilter: (Request) ⇒ Request
  32. val retryContext: RetryContext
  33. val rpcEncoding: RPCEncoding
  34. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def withBackend(newBackend: HttpClientBackend): HttpClientConfig
  39. def withCircuitBreaker(f: (CircuitBreaker) ⇒ CircuitBreaker): HttpClientConfig
  40. def withClientFilter(filter: RxHttpFilter): HttpClientConfig

    Add a new RxClientFilter.

    Add a new RxClientFilter. This filter is useful for adding a common error handling logic for the Rx[Response].

  41. def withClientFilter(filter: HttpClientFilter): HttpClientConfig

    Add a new HttpClientFilter.

    Add a new HttpClientFilter. This filter is useful for adding a common error handling logic for the Rx[Response].

  42. def withCodecFactory(newCodecFactory: MessageCodecFactory): HttpClientConfig
  43. def withConnectTimeout(duration: Duration): HttpClientConfig
  44. def withDebugConsoleLogger: HttpClientConfig

    Use Debug Console http logging

  45. def withHttpLogger(loggerProvider: (HttpLoggerConfig) ⇒ HttpLogger): HttpClientConfig
  46. def withJSONEncoding: HttpClientConfig
  47. def withLoggerConfig(f: (HttpLoggerConfig) ⇒ HttpLoggerConfig): HttpClientConfig

    Customize logger configuration

  48. def withMsgPackEncoding: HttpClientConfig
  49. def withName(name: String): HttpClientConfig
  50. def withRPCEncoding(newEncoding: RPCEncoding): HttpClientConfig
  51. def withReadTimeout(duration: Duration): HttpClientConfig
  52. def withRequestFilter(newRequestFilter: (Request) ⇒ Request): HttpClientConfig

    Add a custom request filter, e.g., for adding Authentication headers

  53. def withRetryContext(filter: (RetryContext) ⇒ RetryContext): HttpClientConfig

Deprecated Value Members

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from HttpChannelConfig

Inherited from AnyRef

Inherited from Any

Ungrouped