Case class encapsulating a single piece of a parsed url
Trait encapsulating parts of the parse of a url
Extractor for left-binding object based DSL.
Extractor for left-binding object based DSL. To use: case url @ Get <or other methed> on Root / first level / second level / .. repeat
Extractor for integers
Extractor for Longs
Case object indicting the root of a url
Keyword which triggers left-binding object based parsing.
Keyword which triggers left-binding object based parsing. Must be used to match a url pattern with an HTTP method.
URL parsing can be done using one of two paths. The first uses an object based decomposition with a minimal number of string operations. This parses using the 'on' keyword and the left associative '/' operator.
The second method uses string operations in a right associative manner. Because all values are strings, it is less type safe than the object method. This is used with the 'in' keyword and the right associative '/:' operator. In this method, the final variable in the pattern will consume all remaining levels.
To use either language, import the UrlParsing._ object