[erlang-questions] [ANN] hackney 0.4.1 released
Tue Jun 11 09:27:26 CEST 2013
On Mon, Jun 10, 2013 at 4:23 PM, Anthony Ramine <> wrote:
> -define(SHORTCUT(Method), Method(URL) -> hackney:request(Method, URL)).
> To be honest I would just write each shortcut without any trick.
Well It doesn't provide the same syntax here where yo can have `
hackney:get(..)` or `hackney:post(...)`
The main reason I'm doing a parse transform is to not have to worry
about adding a method or handling different cases, for example:
hackney:get(Url, Headers, Options)
and do that for each method. Most of pseudo rest client don't handle
all methods. But I can indeed write them manually, not a big deal.
Will do that on next release. In the mean time if there is a way to
automatized that, that would be good.
More information about the erlang-questions