http4k / org.http4k.routing.experimental / ResourceLoading
interface ResourceLoading :
Router
A little convenience thunk to simplify implementing Router for resource loaders.
Name | Summary |
---|---|
match | abstract fun match(path: String ): HttpHandler ? Attempt to supply an HttpHandler which can service the passed request. open fun match(request: Request ): RouterMatch |
Name | Summary |
---|---|
and | infix fun Router .and(that: Router ): Router |
bind | infix fun Router .bind(handler: HttpHandler ): RoutingHttpHandler infix fun Router .bind(handler: RoutingHttpHandler ): RoutingHttpHandler |