Commit graph

11 commits

Author SHA1 Message Date
Simon Cruanes
21f4743320 fix(urlencode): encode non ascii chars 2020-12-15 22:16:33 -05:00
Simon Cruanes
b640c0da30 feat: add Route.t construct, deprecate scanf, add more structured path
- Request now contains a path split into components
- Request now contains the query part already transformed into an assoc list
- Route.t uses a simple GADT for mapping `/`-split paths into routes,
  passing some components of type string or int to the handler
- deprecate scanf-based routing, as being too error prone
2020-05-27 19:56:23 -04:00
Simon Cruanes
bdd2fd8160 feat(util): add some query related utils 2020-02-26 19:55:37 -06:00
Simon Cruanes
130608d924 feat: easy accessor to the query parameters in path 2019-12-09 14:28:57 -06:00
Simon Cruanes
4d852f3cd3 fix: %X for percent_encode; use percent_decode in parse_query 2019-11-26 19:22:21 -06:00
Simon Cruanes
eab754ec95 test: use qtest to test utils 2019-11-26 19:11:37 -06:00
Simon Cruanes
b0dbc1c057 feat: add Tiny_httpd_util.parse_query for query decoding 2019-11-26 19:11:22 -06:00
Simon Cruanes
9eae697ded refactor: improve code of percent encode/decode 2019-11-26 19:10:43 -06:00
Simon Cruanes
d1828fdcaa prepare for 0.2 2019-11-22 17:56:10 -06:00
Simon Cruanes
2b95c181b8 fix: improved percent encoding of paths 2019-11-22 13:45:37 -06:00
Simon Cruanes
4aaf77b261 feat: add percent encoding/decoding
close #7
2019-11-22 13:36:18 -06:00