27 Static (original) (raw)

top contents [← prev](session.html "backward to "26 Sessions"") [up](index.html "up to "koyo: Web Development Toolkit"") [next →](testing.html "forward to "28 Testing"")

27 Static🔗

(require koyo/static) package: koyo-lib

This module provides utilities for building static file dispatchers.

procedure(make-static-dispatcher root-path [root]) → dispatcher/c
root-path : path-string?
root : non-empty-string? = "/static/"

Returns a dispatcher that serves files from root-path under the root URI.

top contents [← prev](session.html "backward to "26 Sessions"") [up](index.html "up to "koyo: Web Development Toolkit"") [next →](testing.html "forward to "28 Testing"")