toggle menu
http4k
6.9.0.0
jvm
switch theme
search in API
http4k-connect-amazon-core
/
org.http4k.connect.amazon
/
AwsJsonFake
/
route
route
inline
fun
<
Req
:
Any
>
route
(
crossinline
responseFn
:
(
Any
)
->
Response
=
{ Response(OK).body(autoMarshalling.asFormatString(it)) }
,
crossinline
errorFn
:
(
JsonError
)
->
Response
=
{ Response(BAD_REQUEST).body(autoMarshalling.asFormatString(it)) }
,
crossinline
fn
:
(
Req
)
->
Any
?
)
:
RoutingHttpHandler