Module hex_http
This module defines the hex_http
behaviour. Required callback functions: request/5
.
Data Types
body()
body() = nil
headers()
headers() = #{binary() => binary()}
method()
method() = get | post | put | patch | delete
status()
status() = non_neg_integer()
Function Index
request/5 |
Function Details
request/5
request(Config::hex_core:config(), Method::method(), URI::binary(), Headers::headers(), Body::body()) -> {ok, {status(), headers(), binary()}} | {error, term()}