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
Fake
Git
Hub
Json
class
FakeGitHubJson
(
val
autoMarshalling
:
AutoMarshalling
,
tokens
:
Storage
<
Owner
>
,
val
users
:
Storage
<
StoredUser
>
)
(
source
)
Members
Members & Extensions
Constructors
Fake
Git
Hub
Json
Link copied to clipboard
constructor
(
autoMarshalling
:
AutoMarshalling
,
tokens
:
Storage
<
Owner
>
,
users
:
Storage
<
StoredUser
>
)
Properties
auto
Marshalling
Link copied to clipboard
val
autoMarshalling
:
AutoMarshalling
users
Link copied to clipboard
val
users
:
Storage
<
StoredUser
>
Functions
get
Authed
User
Emails
Link copied to clipboard
fun
FakeGitHubJson
.
getAuthedUserEmails
(
)
:
RoutingHttpHandler
get
Authed
User
Public
Emails
Link copied to clipboard
fun
FakeGitHubJson
.
getAuthedUserPublicEmails
(
)
:
RoutingHttpHandler
route
Link copied to clipboard
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