Directory Browsing

The directory listing provider serves a simple web UI allowing users to browse directories and files read from a resource tree below the specified path.

Kotlin
val tree = ResourceTree.fromDirectory("/var/www/documents/")

Host.create()
    .handler(Listing.from(tree))
    .run()

In this example, the listing view will be available at http://localhost:8080/.

Directory listing served by the genhttp-kt server