org
.
latestbit
.
picooc
PiRequest
Related Doc:
package picooc
case class
PiRequest
(
httpRequest:
Request
,
maxResponseSizeMb:
Int
=
100
)
extends
Product
with
Serializable
Linear Supertypes
Serializable
,
Serializable
,
Product
,
Equals
,
AnyRef
,
Any
Ordering
Alphabetic
By Inheritance
Inherited
PiRequest
Serializable
Serializable
Product
Equals
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
new
PiRequest
(
httpRequest:
Request
,
maxResponseSizeMb:
Int
=
100
)
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
val
FORM_CONTENT_TYPE
: String("application/x-www-form-urlencoded")
Attributes
protected
final
val
JSON_CONTENT_TYPE
: String("application/json")
Attributes
protected
final
val
TEXT_CONTENT_TYPE
: String("text/plain")
Attributes
protected
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
file
(
filePath:
Path
,
contentType:
String
)
:
Request
def
files
(
files: (
Path
,
String
)*
)
:
Unit
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
(
name:
String
,
value:
String
)
:
PiRequest
def
headers
(
values:
Map
[
String
,
String
]
)
:
PiRequest
val
httpRequest
:
Request
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
final
val
log
:
Logger
Attributes
protected
def
mapResponseBody
[
S
,
T
]
(
response:
PiResponse
[
S
]
,
defaultBody:
T
)
(
mapFunc: (
S
,
ContentResponse
) ⇒
T
)
(
implicit
arg0:
Manifest
[
S
]
,
arg1:
Manifest
[
T
]
)
:
PiResponse
[
T
]
Attributes
protected
def
mapResponseJSonBody
[
T
]
(
response:
PiResponse
[
String
]
)
(
implicit
arg0:
Manifest
[
T
]
)
:
PiResponse
[
T
]
Attributes
protected
val
maxResponseSizeMb
:
Int
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
def
param
(
name:
String
,
value:
String
)
:
PiRequest
def
params
(
values:
Map
[
String
,
String
]
)
:
PiRequest
def
send
:
ContentResponse
def
sendAndReceive
[
T
]
(
implicit
arg0:
Manifest
[
T
]
)
:
PiResponse
[
T
]
def
sendAndReceive
:
PiResponse
[
String
]
def
sendAsyncAndReceive
[
T
]
(
implicit
arg0:
Manifest
[
T
]
)
:
Future
[
PiResponse
[
T
]]
def
sendAsyncAndReceive
:
Future
[
PiResponse
[
String
]]
def
sendAsyncHttpRequest
(
responseListener:
Listener
)
:
Unit
def
sendAsyncHttpRequest
[
T
]
(
bodyBuilder: (
Result
,
BufferingResponseListener
) ⇒
PiResponse
[
T
]
)
:
Future
[
PiResponse
[
T
]]
Attributes
protected
val
syncResponseListener
:
FutureResponseListener
Attributes
protected
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
timeout
(
duration:
Duration
)
:
PiRequest
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
withFormUrlEncoded
(
data:
Map
[
String
,
String
]
)
:
PiRequest
def
withJsonContent
[
T
]
(
content:
T
)
(
implicit
arg0:
Manifest
[
T
]
)
:
PiRequest
def
withStringContent
(
content:
String
,
contentType:
String
=
TEXT_CONTENT_TYPE
,
encoding:
String
=
"UTF-8"
)
:
PiRequest
Inherited from
Serializable
Inherited from
Serializable
Inherited from
Product
Inherited from
Equals
Inherited from
AnyRef
Inherited from
Any
Ungrouped