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
class ResourceListingHandler(dir: ResourceSummary, contents: Iterable<ResourceSummary>, renderer: DirectoryRenderer) : Function1<request: Request, Response>
Link copied to clipboard
object ResourceLoaders
Link copied to clipboard
A little convenience thunk to simplify implementing Router for resource loaders.
Link copied to clipboard
Link copied to clipboard
data class URLResource(val url: URL, val contentType: ContentType, val lastModified: Instant? = null) : Resource
Functions
Link copied to clipboard
fun simpleDirectoryRenderer(uri: Uri, dir: ResourceSummary, resources: Iterable<ResourceSummary>): String
Link copied to clipboard