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
Ordering
- Alphabetic
- By Inheritance
Inherited
- HttpClientConfig
- Serializable
- Serializable
- Product
- Equals
- HttpChannelConfig
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- 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
-
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( ... ) @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[_]
- 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
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
val
readTimeout: Duration
- Definition Classes
- HttpClientConfig → HttpChannelConfig
- val requestFilter: (Request) ⇒ Request
- 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( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- 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 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