Module erlcloud_httpc

HTTP client abstraction for erlcloud.

Authors: Ransom Richardson (ransom@ransomr.net).

Description

HTTP client abstraction for erlcloud. Simplifies changing http clients. API matches lhttpc, except Config is passed instead of options for future cusomizability.

Data Types

body()

body() = binary() | undefined | pid()

When partial_download option is used.

headers()

headers() = [{atom() | string(), iodata()}]

atom is of type 'Cache-Control' | 'Connection' | 'Date' | ...

request_fun()

request_fun() = lhttpc | httpc | hackney | {module(), atom()} | fun((string(), head | get | put | post | trace | options | delete, [{binary(), binary()}], binary(), pos_integer(), #aws_config{}) -> {ok, {{pos_integer(), string()}, [{string(), string()}], binary()}} | {error, any()})

result()

result() = {ok, {{StatusCode::pos_integer(), StatusMsg::string()}, headers(), body()}} | {ok, {pid(), WindowSize::non_neg_integer() | infinity}} | {error, atom()}

Function Index

request/6

Function Details

request/6

request(URL, Method, Hdrs, Body, Timeout, Aws_config) -> any()


Generated by EDoc