ex_easypost v3.0.2 EasyPost.HTTP behaviour

Link to this section Summary

Link to this section Types

Link to this type

response_t()

response_t() :: %{
  body: binary(),
  headers: EasyPost.http_headers_t(),
  status_code: pos_integer()
}

Link to this section Callbacks

Link to this callback

request(method, url, headers, body, opts)

request(
  method :: EasyPost.http_method_t(),
  url :: String.t(),
  headers :: EasyPost.http_headers_t(),
  body :: binary(),
  opts :: any()
) :: {:ok, response_t()} | {:error, any()}