Fwd: [erlang-questions] Re: http or httpc?
Attila Rajmund Nohl
Thu Apr 29 17:49:56 CEST 2010
2010/4/29, Tim Fletcher <mail@REDACTED>:
>> I think that's documentation that wasn't updated. The http module is
>> not even documented in the module list, and as far as I know, it's
>> just a backward-compatible interface. New code should use httpc.
> My mistake, I thought using the http module was the correct API.
> A lot of new-ish code uses the http module:
I believe the httpc module is from 2009, so it was introduced only in
inets-5.3.1 (the current version), so it's pretty new.
> In addition to the inets docs, some of the inets code also uses the
> http module (src/inets_app/inets_service.erl, test/httpc_SUITE.erl,
> and test/httpc_cookie_SUITE.erl). Does that need patching?
I don't know, it's wise to keep testing the legacy interface, the OTP
team can't expect everyone to update immediately.
More information about the erlang-questions