class ClientSettings extends AnyRef
Configures and creates HttpClient
.
ClientSettings
is a mutable structure. With each applied change, the
settings are modified and returned. After applying the desired settings, a
client is created using a factory method.
- Alphabetic
- By Inheritance
- ClientSettings
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ClientSettings()
Creates client settings.
Creates client settings.
Default Settings
Key
Value
acceptEncodings
Nil
bufferSize
8192
readTimeout
30000
continueTimeout
1000
coookieStore
CookieStore.alwaysEmpty
trust
(Not set)
incoming
(Not set)
outgoing
(Not set)
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
- def acceptEncodings(one: ContentCodingRange, more: ContentCodingRange*): ClientSettings.this.type
Sets accepted encodings.
Sets accepted encodings.
The
Accept-Encoding
header for each outgoing request is set accordingly. - def acceptEncodings(ranges: Seq[ContentCodingRange]): ClientSettings.this.type
Sets accepted encodings.
Sets accepted encodings.
The
Accept-Encoding
header for each outgoing request is set accordingly. - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bufferSize(size: Int): ClientSettings.this.type
Sets buffer size.
Sets buffer size.
The buffer size specifies the size in bytes of client socket's send and receive buffers.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def continueTimeout(timeout: Int): ClientSettings.this.type
Sets continue timeout.
Sets continue timeout.
The continue timeout specifies how long to wait (in milliseconds) for 100 Continue response before sending the request body.
- Note
This applies only to requests that include
Except: 100-Continue
header and request body.
- def cookieStore(cookies: CookieStore = CookieStore()): ClientSettings.this.type
Sets cookie store.
Sets cookie store.
- cookies
cookie store
- def create(): HttpClient
Creates client using current settings.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def incoming(filter: ResponseFilter): ClientSettings.this.type
Adds supplied response filter.
- 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()
- def outgoing(filter: RequestFilter): ClientSettings.this.type
Adds supplied request filter.
- def readTimeout(timeout: Int): ClientSettings.this.type
Sets read timeout.
Sets read timeout.
The read timeout specifies how long (in milliseconds) a read from client socket blocks before it times out, whereafter
SocketTimeoutException
is thrown. - def reset(): ClientSettings.this.type
Resets to default settings.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def trust(manager: TrustManager): ClientSettings.this.type
Sets trust manager.
Sets trust manager.
- manager
trust manager used for HTTPS connections
- def trust(truststore: File, storeType: String = "JKS", password: Option[String] = None): ClientSettings.this.type
Sets truststore.
Sets truststore.
- truststore
truststore used for HTTPS connections
- storeType
store type (e.g., JKS or PKCS12)
- password
store password
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()
Provided herein is API documentation for Scamper, the HTTP library for Scala.