route.server library

This library provides a simple API for routing HttpRequests based on thier URL.

Classes

Router
A request router that makes it easier to handle HttpRequests from an HttpServer. [...]
UrlPattern
A pattern, similar to a RegExp, that is designed to match against URL paths, easily return groups of a matched path, and produce paths from a list of arguments - this is they are "reversible". [...]

Functions

send404(HttpRequest req) → void
urlPattern(String p) UrlPattern

Typedefs

Filter(HttpRequest request) → Future<bool>