docs
4.12
customSourceSet
docs
/
net.corda.testing.http
/
HttpUtils
Http
Utils
object
HttpUtils
A small set of utilities for making HttpCalls, aimed at demos and tests.
Members
Properties
default
Mapper
Link copied to clipboard
val
defaultMapper
:
<Error class: unknown class>
Functions
get
Json
Link copied to clipboard
inline
fun
<
T
:
Any
>
getJson
(
url
:
URL
,
params
:
Map
<
String
,
String
>
=
mapOf()
,
mapper
:
<Error class: unknown class>
=
defaultMapper
)
:
T
post
Json
Link copied to clipboard
fun
postJson
(
url
:
URL
,
data
:
String
)
post
Plain
Link copied to clipboard
fun
postPlain
(
url
:
URL
,
data
:
String
)
put
Json
Link copied to clipboard
fun
putJson
(
url
:
URL
,
data
:
String
)