API Reference

API Reference


The first line of each route script is checked for a “directive”. These are special comments that let you override the way a route is handled internally.

These are the directives that currently exist:

Request Variables

The following variables are available in all route handlers:

The framework will automatically parse the request and populate the following associative arrays:

The following are only used if you are writing an upload handler:

Returning HTTP Codes

You can return any of the following HTTP codes from an endpoint:

# example
return $(status_code 404)
Powered by bash