header() = {string() | atom(), string()}
headers() = [header()]
option() = {connect_timeout, timeout()} | {timeout, timeout()} | {send_retry, non_neg_integer()} | {partial_upload, non_neg_integer() | infinity} | {partial_download, pid(), non_neg_integer() | infinity}
options() = [option()]
result() = {ok, {{pos_integer(), string()}, headers(), string()}} | {error, atom()}
get/1 | Sends a GET request. |
get/2 | Sends a GET request. |
get_pool_size/0 | |
get_pool_size/0 | |
get_pool_size/0 | |
post/2 | Sends a POST request with form data. |
post/3 | Sends a POST request. |
request/3 | Sends a request without a body. |
request/4 | Sends a request with a body. |
request/5 | Sends a request with a body. |
request/5 | Sends a request with a body. |
request/5 | Sends a request with a body. |
set_pool_size/1 | |
set_pool_size/1 | |
set_pool_size/1 | |
start/0 | |
start/0 | |
start/0 | |
stop/0 | |
stop/0 | |
stop/0 |
get(URL::string()) -> result()
Sends a GET request.
Would be the same as calling request(get, URL, [])
,
that is request/3
with an empty header list.
See also: request/3.
Sends a GET request.
Would be the same as calling request(get, URL, Hdrs)
.
See also: request/3.
get_pool_size() -> any()
get_pool_size() -> any()
get_pool_size() -> any()
post(URL::string(), Body::string()) -> result()
Sends a POST request with form data.
Would be the same as calling
request(post, URL, [{"content-type", "x-www-form-urlencoded"}], Body)
.
See also: request/4.
Sends a POST request.
Would be the same as calling
request(post, URL, Hdrs, Body)
.
See also: request/4.
Sends a request without a body.
Would be the same as calling request(Method, URL, Hdrs, [], [])
,
that is request/5
with an empty body.
See also: request/5.
Sends a request with a body.
Would be the same as calling
request(Method, URL, Hdrs, Body, [])
, that is request/5
with no options.
See also: request/5.
request(Method::atom(), URL::string(), Hdrs::headers(), Body::string(), Opts::options()) -> result()
Sends a request with a body.
Would be the same as calling
request(Method, URL, Hdrs, Body, [])
, that is request/5
with no options.
See also: request/5.
request(Method::atom(), URL::string(), Hdrs::headers(), Body::string(), Opts::options()) -> result()
Sends a request with a body.
Would be the same as calling
request(Method, URL, Hdrs, Body, [])
, that is request/5
with no options.
See also: request/5.
request(Method::atom(), URLRaw::string(), HdrsRaw::headers(), Body::string(), Opts::options()) -> result()
Sends a request with a body.
Would be the same as calling
request(Method, URL, Hdrs, Body, [])
, that is request/5
with no options.
See also: request/5.
set_pool_size(Size) -> any()
set_pool_size(Size) -> any()
set_pool_size(Size) -> any()
start() -> any()
start() -> any()
start() -> any()
stop() -> any()
stop() -> any()
stop() -> any()
Generated by EDoc