Module r3_hex_http

HTTP contract.

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

Description

HTTP contract.

Data Types

adapter_config()

adapter_config() = map()

body()

body() = {ContentType::binary(), Body::binary()} | undefined

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::r3_hex_core:config(), Method::method(), URI::binary(), Headers::headers(), Body::body()) -> {ok, {status(), headers(), binary()}} | {error, term()}


Generated by EDoc