case class ClientOptions(ioThreads: Int = ..., tcpNoDelay: Boolean = true, bufferSize: Option[Int] = None, protocols: Set[String] = Set(HTTP), debug: Option[String] = None) extends Product with Serializable
Allow to configure an HTTP client.
- ioThreads
the number of threads used for the IO work. Default to
min(availableProcessors, 2)
.- tcpNoDelay
if true disable Nagle's algorithm. Default
true
.- bufferSize
if defined used as a hint for the TCP buffer size. If none use the system default. Default to
None
.- protocols
the protocols to use to connect to the server. If SSL enabled the protocol is negociated using ALPN. Without SSL enabled only direct HTTP2 connections with prior knowledge are supported. Meaning that HTTP2 will be used if it is the only option available. If HTTP is listed, the client will always fallback to HTTP/1.0 for plain connections.
- debug
if defined log the TCP traffic with the provided logger name. Default to
None
.
- Alphabetic
- By Inheritance
- ClientOptions
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ClientOptions(ioThreads: Int = ..., tcpNoDelay: Boolean = true, bufferSize: Option[Int] = None, protocols: Set[String] = Set(HTTP), debug: Option[String] = None)
- ioThreads
the number of threads used for the IO work. Default to
min(availableProcessors, 2)
.- tcpNoDelay
if true disable Nagle's algorithm. Default
true
.- bufferSize
if defined used as a hint for the TCP buffer size. If none use the system default. Default to
None
.- protocols
the protocols to use to connect to the server. If SSL enabled the protocol is negociated using ALPN. Without SSL enabled only direct HTTP2 connections with prior knowledge are supported. Meaning that HTTP2 will be used if it is the only option available. If HTTP is listed, the client will always fallback to HTTP/1.0 for plain connections.
- debug
if defined log the TCP traffic with the provided logger name. Default to
None
.
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 bufferSize: Option[Int]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- val debug: Option[String]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val ioThreads: Int
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val protocols: Set[String]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val tcpNoDelay: Boolean
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )