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
- All
Instance Constructors
-
new
ClientSettings()
Creates client settings.
Creates client settings.
Default Settings
Key
Value
accept
*
/
*
acceptEncodings
Nil
bufferSize
8192
readTimeout
30000
continueTimeout
1000
coookies
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
accept(one: MediaRange, more: MediaRange*): ClientSettings.this.type
Sets accepted content types.
Sets accepted content types.
The Accept header for each outgoing request is set accordingly.
-
def
accept(ranges: Seq[MediaRange]): ClientSettings.this.type
Sets accepted content types.
Sets accepted content types.
The Accept header for each outgoing request is set accordingly.
-
def
acceptEncoding(one: ContentCodingRange, more: ContentCodingRange*): ClientSettings.this.type
Sets accepted content encodings.
Sets accepted content encodings.
The Accept-Encoding header for each outgoing request is set accordingly.
-
def
acceptEncoding(ranges: Seq[ContentCodingRange]): ClientSettings.this.type
Sets accepted content encodings.
Sets accepted content 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( ... ) @native()
-
def
continueTimeout(timeout: Int): ClientSettings.this.type
Sets continue timeout.
Sets continue timeout.
The continue timeout specifies how many milliseconds to wait for a 100 (Continue) response before sending the request body.
- Note
This applies only to requests that include an Except header set to 100-Continue.
-
def
cookies(cookieStore: CookieStore = CookieStore()): ClientSettings.this.type
Sets cookie store.
-
def
create(): HttpClient
Creates client using current settings.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- 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 many 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( ... )
-
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()
Provided herein is API documentation for Scamper, the HTTP library for Scala.