[erlang-questions] Does Inets HTTP client and PATCH method?
Jesper Louis Andersen
Mon Jan 19 14:46:46 CET 2015
On Sat, Jan 17, 2015 at 12:24 PM, John Duffy <jb_duffy@REDACTED>
> My Foreign Exchange broker provides a HTTP REST API for automated trading,
> and uses the HTTP PATCH method for updating outstanding trade orders. I
> can't find a reference to the PATCH method in the httpc client
> documentation. Is this HTTP method supported?
No, it is not.
Only the basic ones listed in RFC 7231,
are supported. The registered method extensions listed in the HTTP
seems to be without support. It should be fairly easy to add missing
An alternative route would be to employ one of the many http client
libraries out there. I'm partial to 'hackney' by Benoît Chesnau, but there
are numerous others. On top of my head: lhttpc (Two branches: Fred Hebert,
and one by Erlang Solutions Ltd.), gun (Loïc Hoguin), ibrowse
(Chandrashekhar Mullaparthi), fusco (Diana Corbacho) and probably a couple
I've forgotten. Different implementations enjoy different properties, so
picking the one for your project may be something that takes a little time.
I well known problem with the built-in httpc is that it has problems when
experiencing high load. But I've used it successfully for a low-traffic
site for years (only GET requests though).
 though I have my doubts about CONNECT.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions