MockRequestHandleScope
class MockRequestHandleScope
Scope for MockRequestHandler.
Constructors
MockRequestHandleScope(callContext: <ERROR CLASS>) Scope for MockRequestHandler. |
Extension Functions
fun MockRequestHandleScope.respond( Send response with specified string content, status and headers. fun MockRequestHandleScope.respond( Send response with specified bytes content, status and headers. fun MockRequestHandleScope.respond( Send response with specified ByteReadChannel, status and headers. |
|
fun MockRequestHandleScope.respondBadRequest(): HttpResponseData Send HttpStatusCode.BadRequest response. |
|
fun MockRequestHandleScope.respondError( Send error response. |
|
fun MockRequestHandleScope.respondOk( Send ok response. |
|
fun MockRequestHandleScope.respondRedirect( Respond redirect with location in Location header. |