diff options
author | Micael Karlberg <[email protected]> | 2012-03-14 18:51:03 +0100 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2012-03-14 18:51:03 +0100 |
commit | 0c11d7235ed1f0f5c595cf3d9a433adf9c61cc8c (patch) | |
tree | 428838d36c1d5dbfbea9f5fbc9aade0610c23fc4 /lib/inets/src/http_client | |
parent | 54ca9088b4a83b1f7dc22db7ec4c16607fdd8850 (diff) | |
download | otp-0c11d7235ed1f0f5c595cf3d9a433adf9c61cc8c.tar.gz otp-0c11d7235ed1f0f5c595cf3d9a433adf9c61cc8c.tar.bz2 otp-0c11d7235ed1f0f5c595cf3d9a433adf9c61cc8c.zip |
[inets] A more general version of http_uri:parse
OTP-9983
Diffstat (limited to 'lib/inets/src/http_client')
-rw-r--r-- | lib/inets/src/http_client/httpc.erl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/inets/src/http_client/httpc.erl b/lib/inets/src/http_client/httpc.erl index 5ed2d98ba6..2c51c2081c 100644 --- a/lib/inets/src/http_client/httpc.erl +++ b/lib/inets/src/http_client/httpc.erl @@ -585,6 +585,10 @@ maybe_encode_uri(#http_options{url_encode = true}, URI) -> maybe_encode_uri(_, URI) -> URI. +uri_parse(AbsURI) -> + http_uri:parse(AbsURI, [{scheme_defaults, [{http, 80}, {https, 443}]}]). + + mk_chunkify_fun(ProcessBody) -> fun(eof_body) -> eof; |