scalaj
.
http
HttpRequest
case class
HttpRequest
(
url:
String
,
method:
String
,
exec:
HttpExec
,
params:
Seq
[(
String
,
String
)]
,
headers:
Seq
[(
String
,
String
)]
,
options:
Seq
[
HttpOption
]
,
proxy:
Proxy
,
charset:
String
,
sendBufferSize:
Int
,
urlBuilder: (
HttpRequest
) ⇒
String
)
extends
Product
with
Serializable
Linear Supertypes
Serializable
,
Serializable
,
Product
,
Equals
,
AnyRef
,
Any
Ordering
Alphabetic
By inheritance
Inherited
HttpRequest
Serializable
Serializable
Product
Equals
AnyRef
Any
Hide All
Show all
Learn more about member selection
Visibility
Public
All
Instance Constructors
new
HttpRequest
(
url:
String
,
method:
String
,
exec:
HttpExec
,
params:
Seq
[(
String
,
String
)]
,
headers:
Seq
[(
String
,
String
)]
,
options:
Seq
[
HttpOption
]
,
proxy:
Proxy
,
charset:
String
,
sendBufferSize:
Int
,
urlBuilder: (
HttpRequest
) ⇒
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
def
asBytes
:
HttpResponse
[
Array
[
Byte
]]
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
asParamMap
:
HttpResponse
[
Map
[
String
,
String
]]
def
asParams
:
HttpResponse
[
Seq
[(
String
,
String
)]]
def
asString
:
HttpResponse
[
String
]
def
asToken
:
HttpResponse
[
Token
]
def
auth
(
user:
String
,
password:
String
)
:
HttpRequest
def
charset
(
cs:
String
)
:
HttpRequest
val
charset
:
String
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
val
exec
:
HttpExec
def
execute
[
T
]
(
parser: (
InputStream
) ⇒
T
=
...
,
stream:
Boolean
=
false
)
:
HttpResponse
[
T
]
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:
String
,
value:
String
)
:
HttpRequest
def
headers
(
h: (
String
,
String
)
,
rest: (
String
,
String
)*
)
:
HttpRequest
def
headers
(
h:
Seq
[(
String
,
String
)]
)
:
HttpRequest
def
headers
(
h:
Map
[
String
,
String
]
)
:
HttpRequest
val
headers
:
Seq
[(
String
,
String
)]
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
method
(
m:
String
)
:
HttpRequest
val
method
:
String
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
def
oauth
(
consumer:
Token
,
token:
Option
[
Token
]
,
verifier:
Option
[
String
]
)
:
HttpRequest
def
oauth
(
consumer:
Token
,
token:
Token
,
verifier:
String
)
:
HttpRequest
def
oauth
(
consumer:
Token
,
token:
Token
)
:
HttpRequest
def
oauth
(
consumer:
Token
)
:
HttpRequest
def
option
(
o:
HttpOption
)
:
HttpRequest
def
options
(
o:
HttpOption
,
rest:
HttpOption
*
)
:
HttpRequest
def
options
(
o:
Seq
[
HttpOption
]
)
:
HttpRequest
val
options
:
Seq
[
HttpOption
]
def
param
(
key:
String
,
value:
String
)
:
HttpRequest
def
params
(
p: (
String
,
String
)
,
rest: (
String
,
String
)*
)
:
HttpRequest
def
params
(
p:
Seq
[(
String
,
String
)]
)
:
HttpRequest
def
params
(
p:
Map
[
String
,
String
]
)
:
HttpRequest
val
params
:
Seq
[(
String
,
String
)]
def
postData
(
data:
Array
[
Byte
]
)
:
HttpRequest
def
postData
(
data:
String
)
:
HttpRequest
def
postForm
(
params:
Seq
[(
String
,
String
)]
)
:
HttpRequest
def
postForm
:
HttpRequest
def
postMulti
(
parts:
MultiPart
*
)
:
HttpRequest
def
proxy
(
proxy:
Proxy
)
:
HttpRequest
def
proxy
(
host:
String
,
port:
Int
,
proxyType:
Type
)
:
HttpRequest
def
proxy
(
host:
String
,
port:
Int
)
:
HttpRequest
val
proxy
:
Proxy
def
sendBufferSize
(
numBytes:
Int
)
:
HttpRequest
val
sendBufferSize
:
Int
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
timeout
(
connTimeoutMs:
Int
,
readTimeoutMs:
Int
)
:
HttpRequest
val
url
:
String
val
urlBuilder
: (
HttpRequest
) ⇒
String
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
(
...
)
Inherited from
Serializable
Inherited from
Serializable
Inherited from
Product
Inherited from
Equals
Inherited from
AnyRef
Inherited from
Any
Ungrouped