This module defines the r3_hex_http behaviour.
Required callback functions: request/5, request_to_file/6.
adapter_config() = map()
body() = {ContentType::binary(), Body::binary()} | undefined
headers() = #{binary() => binary()}
method() = get | post | put | patch | delete
status() = non_neg_integer()
| request/5 | |
| request_to_file/6 |
request(Config::r3_hex_core:config(), Method::method(), URI::binary(), Headers::headers(), Body::body()) -> {ok, {status(), headers(), binary()}} | {error, term()}
request_to_file(Config::r3_hex_core:config(), Method::method(), URI::binary(), Headers::headers(), Body::body(), Filename::file:name_all()) -> {ok, {status(), headers()}} | {error, term()}
Generated by EDoc