View Source oidcc_http_util (Oidcc v3.2.6)
HTTP Client Utilities
Summary
Types
See httpc:request/5
for additional errors.
Types
-type error() :: {http_error, StatusCode :: pos_integer(), HttpBodyResult :: binary() | map()} | {use_dpop_nonce, Nonce :: binary(), HttpBodyResult :: binary() | map()} | invalid_content_type | httpc_error().
See httpc:request/5
.
-type httpc_error() :: term().
See httpc:request/5
for additional errors.
-type query_params() :: [{unicode:chardata(), unicode:chardata() | true}].
-type request_opts() :: #{timeout => timeout(), ssl => [ssl:tls_option()], httpc_profile => atom() | pid()}.
See httpc:request/5
.
Parameters
timeout
- timeout for requestssl
- TLS config
Functions
-spec headers_to_cache_deadline(Headers, DefaultExpiry) -> pos_integer() when Headers :: [{Header :: binary(), Value :: binary()}], DefaultExpiry :: non_neg_integer().