Modules

hex_api hex_api_key hex_api_package hex_api_package_owner hex_api_release hex_api_user hex_core hex_http hex_http_httpc hex_pb_names hex_pb_package hex_pb_signed hex_pb_versions hex_registry hex_repo hex_tarball safe_erl_term

Module hex_http

This module defines the hex_http behaviour. Required callback functions: request/5.

Data Types

body()


body() = binary() | {string(), binary()} | 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()}