View Source oidcc_http_util (Oidcc v3.1.2)

HTTP Client Utilities

Summary

Types

-type error() ::
    {http_error, StatusCode :: pos_integer(), HttpBodyResult :: binary()} |
    invalid_content_type |
    httpc_error().
-type http_header() :: {Field :: [byte()], Value :: iodata()}.
See httpc:request/5
-type httpc_error() :: term().
See httpc:request/5 for additional errors
-type query_params() :: [{unicode:chardata(), unicode:chardata() | true}].
See uri_string:compose_query/1
-type request_opts() :: #{timeout => timeout(), ssl => [ssl:tls_option()]}.

See httpc:request/5

Parameters

  • timeout - timeout for request
  • ssl - TLS config
-type telemetry_opts() :: #{topic := [atom()], extra_meta => map()}.