| Safe Haskell | Safe |
|---|---|
| Language | Haskell98 |
Burrito.Parse
Description
Warning: This module is not considered part of Burrito's public API. As such, it may change at any time. Use it with caution!.
Documentation
parse :: String -> Maybe Template Source #
Attempts to parse a string as a URI template. If parsing fails, this will
return Nothing. Otherwise it will return Just the parsed template.
Parsing will usually succeed, but it can fail if the input string contains
characters that are not valid in IRIs (like ^) or if the input string
contains an invalid template expression (like {!}). To include characters
that aren't valid in IRIs, percent encode them (like %5E).