Module humphrey::handlers

source ·
Expand description

Provides a number of useful handlers for Humphrey apps.

Functions

  • Redirects requests to the given location with status code 301.
  • Treat the request URI as a file path relative to the given directory and serve files from there.
  • Serves a directory of files.
  • Serve the specified file, or a default error 404 if not found.