http4k
Toggle table of contents
6.55.0.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
http4k
http4k-connect-github-fake
/
org.http4k.connect.github.api
/
FakeGitHubJson
/
route
route
fun
route
(
responseFn
:
(
Any
)
->
Response
=
{ Response(OK).body(autoMarshalling.asFormatString(it)) }
,
errorFn
:
(
Any
)
->
Response
=
{ Response(BAD_REQUEST).body(autoMarshalling.asFormatString(it)) }
,
fn
:
Request
.
(
Owner
)
->
Result
<
Any
,
Any
>
)
:
HttpHandler
(
source
)