AwsJsonFake

class AwsJsonFake(val autoMarshalling: AutoMarshalling, val awsService: AwsService)

Constructors

Link copied to clipboard
constructor(autoMarshalling: AutoMarshalling, awsService: AwsService)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
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