[erlang-questions] Does Inets HTTP client and PATCH method?

Jesper Louis Andersen jesper.louis.andersen@REDACTED
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[0]. The registered method extensions listed in the HTTP
method registry:


seems to be without support. It should be fairly easy to add missing
methods however.

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).

[0] though I have my doubts about CONNECT.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150119/20591293/attachment.htm>

More information about the erlang-questions mailing list