furl
furl copied to clipboard
Formatted url
Much nicer! To compile use: https://github.com/garrigue/ocaml/tree/purity-attribute
New WIP API: ```ocaml type 'a ty val string : string ty val int : int ty val list : 'a ty -> 'a list ty val option : 'a...
We encode the decision tree in a regexp at the moment. This is not great for multiple reason (it doesn't work except for urls ...). It's also a blocker for...
Using ppx, it should be rather easy to do. Something of the form: ``` ocaml {furl|foo.org/bar/%i*?babar=%f?|furl} ``` This would allow to keep a readable syntax while avoiding the value restriction,...
It makes sens to bundle the http verb with a formatted url. It allows to expose endpoint to users with their verb, preventing some mistakes. I'm not sure it should...
[The world bank](http://data.worldbank.org/node/11) sounds like a good candidate.
According to @chambart, [Presburger Arithmetic](https://en.wikipedia.org/wiki/Presburger_arithmetic) is encodable in regexps and would allow to express numerical guards for url components. Such wonderful expressive powers would come at the cost of double...
The regexp for float and ints accept arbitrary big numbers and then parses them. If it's too big, it will fail (and not gracefully, at the moment) I'm not sure...
Currently, atom has a phantom type to force List to be at top level. - Do we really want to force that ? List have a performance downside currently and...
Three libraries could be provided: - A client library using cohttp - A client library using javascript - A server library using cohttp All optionals, of course. The core is...