Module r3_hex_http_httpc

httpc-based implementation of r3_hex_http contract.

Behaviours: r3_hex_http.

Description

httpc-based implementation of r3_hex_http contract.

Configuration keys:

* profile - the name of the profile, defaults to default. See httpc:set_options/2 for more information on setting options on profiles.

* http_options - a list of HTTP options, defaults to []. See httpc:request/5 for a list of available HTTP options. Without an {ssl, SslOpts} option, HTTPS requests verify the server certificate against the CA certificates from public_key:cacerts_get/0, and fail with {error, {cacerts_unavailable, Reason}} when those can't be loaded, which is always the case on OTP 24.

Function Index

request/5
request_to_file/6

Function Details

request/5

request(Method, URI, ReqHeaders, Body, AdapterConfig) -> any()

request_to_file/6

request_to_file(Method, URI, ReqHeaders, Body, Filename, AdapterConfig) -> any()


Generated by EDoc