case class HttpClientConfig(name: String = "default", backend: HttpClientBackend = Compat.defaultHttpClientBackend, requestFilter: (Request) => Request = identity, responseFilter: (Response) => Response = identity, rpcEncoding: RPCEncoding = RPCEncoding.JSON, retryContext: RetryContext = Compat.defaultHttpClientBackend.defaultRequestRetryer, codecFactory: MessageCodecFactory = MessageCodecFactory.defaultFactoryForJSON, circuitBreaker: CircuitBreaker = CircuitBreaker.withConsecutiveFailures(5), connectTimeout: Duration = Duration(90, TimeUnit.SECONDS), readTimeout: Duration = Duration(90, TimeUnit.SECONDS), clientFilter: HttpClientFilter = HttpClientFilter.identity, httpLoggerConfig: HttpLoggerConfig = HttpLoggerConfig(logFileName = "log/http_client.json"), httpLoggerProvider: (HttpLoggerConfig) => HttpLogger = Compat.defaultHttpClientLoggerFactory, loggingFilter: (HttpLogger) => HttpClientFilter = (l: HttpLogger) => new HttpClientLoggingFilter(l)) extends HttpChannelConfig with Product with Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- HttpClientConfig
- Serializable
- Product
- Equals
- HttpChannelConfig
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new HttpClientConfig(name: String = "default", backend: HttpClientBackend = Compat.defaultHttpClientBackend, requestFilter: (Request) => Request = identity, responseFilter: (Response) => Response = identity, rpcEncoding: RPCEncoding = RPCEncoding.JSON, retryContext: RetryContext = Compat.defaultHttpClientBackend.defaultRequestRetryer, codecFactory: MessageCodecFactory = MessageCodecFactory.defaultFactoryForJSON, circuitBreaker: CircuitBreaker = CircuitBreaker.withConsecutiveFailures(5), connectTimeout: Duration = Duration(90, TimeUnit.SECONDS), readTimeout: Duration = Duration(90, TimeUnit.SECONDS), clientFilter: HttpClientFilter = HttpClientFilter.identity, httpLoggerConfig: HttpLoggerConfig = HttpLoggerConfig(logFileName = "log/http_client.json"), httpLoggerProvider: (HttpLoggerConfig) => HttpLogger = Compat.defaultHttpClientLoggerFactory, loggingFilter: (HttpLogger) => HttpClientFilter = (l: HttpLogger) => new HttpClientLoggingFilter(l))
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
- val backend: HttpClientBackend
- val circuitBreaker: CircuitBreaker
- val clientFilter: HttpClientFilter
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- val codecFactory: MessageCodecFactory
- val connectTimeout: Duration
- Definition Classes
- HttpClientConfig → HttpChannelConfig
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val httpLoggerConfig: HttpLoggerConfig
- val httpLoggerProvider: (HttpLoggerConfig) => HttpLogger
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val loggingFilter: (HttpLogger) => HttpClientFilter
- val name: String
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newAsyncClient(serverAddress: String): AsyncClient
- def newHttpLogger: HttpLogger
- def newJSClient: AsyncClient
Create a default Async client for Scala.js in web browsers
- def newLoggingFilter(logger: HttpLogger): HttpClientFilter
- def newSyncClient(serverAddress: String): SyncClient
- def noCircuitBreaker: HttpClientConfig
- def noClientFilter: HttpClientConfig
Remove any client-side filter
- def noLogging: HttpClientConfig
Disable http-client side logging
- def noRequestFilter: HttpClientConfig
- def noResponseFilter: HttpClientConfig
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val readTimeout: Duration
- Definition Classes
- HttpClientConfig → HttpChannelConfig
- val requestFilter: (Request) => Request
- val responseFilter: (Response) => Response
- val retryContext: RetryContext
- val rpcEncoding: RPCEncoding
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withBackend(newBackend: HttpClientBackend): HttpClientConfig
- def withCircuitBreaker(f: (CircuitBreaker) => CircuitBreaker): HttpClientConfig
- 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].
- 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].
- def withCodecFactory(newCodecFactory: MessageCodecFactory): HttpClientConfig
- def withConnectTimeout(duration: Duration): HttpClientConfig
- def withDebugConsoleLogger: HttpClientConfig
Use Debug Console http logging
- def withHttpLogger(loggerProvider: (HttpLoggerConfig) => HttpLogger): HttpClientConfig
- def withJSONEncoding: HttpClientConfig
- def withLoggerConfig(f: (HttpLoggerConfig) => HttpLoggerConfig): HttpClientConfig
Customize logger configuration
- def withMsgPackEncoding: HttpClientConfig
- def withName(name: String): HttpClientConfig
- def withRPCEncoding(newEncoding: RPCEncoding): HttpClientConfig
- def withReadTimeout(duration: Duration): HttpClientConfig
- def withRequestFilter(newRequestFilter: (Request) => Request): HttpClientConfig
Add a custom request filter, e.g., for adding Authentication headers
- def withResponseFilter(newResponseFilter: (Response) => Response): HttpClientConfig
Add a custom response filter, mostly for debugging purpose
- def withRetryContext(filter: (RetryContext) => RetryContext): HttpClientConfig
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
- Deprecated