api

http4k / org.http4k.routing.experimental

Package org.http4k.routing.experimental

Types

Name Summary
InMemoryResource class InMemoryResource : Resource
Resource interface Resource : HttpHandler
ResourceListingHandler class ResourceListingHandler : HttpHandler
ResourceLoaders object ResourceLoaders
ResourceLoading interface ResourceLoading : Router
A little convenience thunk to simplify implementing Router for resource loaders.
ResourceSummary data class ResourceSummary
URLResource data class URLResource : Resource

Type Aliases

Name Summary
DirectoryRenderer typealias DirectoryRenderer = (uri: Uri, dir: ResourceSummary, resources: Iterable<ResourceSummary>) -> String

Functions

Name Summary
simpleDirectoryRenderer fun simpleDirectoryRenderer(uri: Uri, dir: ResourceSummary, resources: Iterable<ResourceSummary>): String
static fun static(resourceLoader: Router): RoutingHttpHandler