Package-level declarations

Types

Link copied to clipboard
typealias DirectoryRenderer = (uri: Uri, dir: ResourceSummary, resources: Iterable<ResourceSummary>) -> String
Link copied to clipboard
class InMemoryResource(content: ByteArray, val contentType: ContentType, val lastModified: Instant? = null, val etag: ETag? = null) : Resource
Link copied to clipboard
interface Resource : Function1<request: Request, Response>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A little convenience thunk to simplify implementing Router for resource loaders.

Link copied to clipboard
data class ResourceSummary(val name: String, val lastModified: Instant? = null)
Link copied to clipboard
data class URLResource(val url: URL, val contentType: ContentType, val lastModified: Instant? = null) : Resource

Functions

Link copied to clipboard
Link copied to clipboard
fun static(resourceLoader: Router): RoutingHttpHandler