ContractRoute

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: List<Tag>

Functions

Link copied to clipboard
fun describeFor(contractRoot: PathSegments): String
Link copied to clipboard
open operator override fun invoke(request: Request): Response

ContractRoutes are chiefly designed to operate within a contract {} block and not directly as an HttpHandler, but this function exists to enable the testing of the ContractRoute logic outside of a wider contract context. This means that certain behaviour is defaulted - chiefly the generation of NOT_FOUND and BAD_REQUEST responses.

Link copied to clipboard
fun newRequest(baseUri: Uri): Request
Link copied to clipboard
fun toRouter(contractRoot: PathSegments): Router
Link copied to clipboard
open override fun toString(): String