Module canteen::utils [] [src]

Functions

err_403

Default handler function for HTTP 403 errors.

err_404

Default handler function for HTTP 404 errors.

err_500

Default handler function for HTTP 500 errors.

make_response

Convenience method for creating a response from the basic components required (a request body, content type, and response code).

replace_escape

Replace the URI escape codes with their ASCII equivalents.

static_file

Handler that sends static files relative to the current working directory.