com
.
sksamuel
.
scruffy
HttpResponse
case class
HttpResponse
(
status:
Int
=
200
,
entity:
Any
=
Array.empty[Byte]
,
cookies:
Set
[
Cookie
] =
Set.empty
,
headers:
Map
[
String
,
String
] =
...
)
extends
Product
with
Serializable
Linear Supertypes
Serializable
,
Serializable
,
Product
,
Equals
,
AnyRef
,
Any
Ordering
Alphabetic
By inheritance
Inherited
HttpResponse
Serializable
Serializable
Product
Equals
AnyRef
Any
Hide All
Show all
Learn more about member selection
Visibility
Public
All
Instance Constructors
new
HttpResponse
(
status:
Int
=
200
,
entity:
Any
=
Array.empty[Byte]
,
cookies:
Set
[
Cookie
] =
Set.empty
,
headers:
Map
[
String
,
String
] =
...
)
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
def
cache
(
maxAge:
Int
,
cacheType:
CacheType
=
CacheType.Public
)
:
HttpResponse
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
contentType
(
c:
String
)
:
HttpResponse
def
contentType
(
c:
MediaType
)
:
HttpResponse
def
contentType
:
MediaType
def
cookie
(
name:
String
,
value:
String
,
maxAge:
Int
)
:
HttpResponse
def
cookie
(
cookie:
Cookie
)
:
HttpResponse
def
cookie
(
name:
String
,
value:
String
)
:
HttpResponse
val
cookies
:
Set
[
Cookie
]
def
entity
(
e:
Any
,
contentType:
String
)
:
HttpResponse
def
entity
(
e:
Any
,
contentType:
MediaType
)
:
HttpResponse
def
entity
(
e:
Any
)
:
HttpResponse
val
entity
:
Any
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
def
header
(
key:
HeaderKey
,
value:
Any
)
:
HttpResponse
def
header
(
key:
String
,
value:
Any
)
:
HttpResponse
val
headers
:
Map
[
String
,
String
]
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
json
(
e:
Any
)
:
HttpResponse
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
def
status
(
code:
Int
)
:
HttpResponse
val
status
:
Int
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
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
(
...
)
def
xml
(
e:
Any
)
:
HttpResponse
Inherited from
Serializable
Inherited from
Serializable
Inherited from
Product
Inherited from
Equals
Inherited from
AnyRef
Inherited from
Any
Ungrouped