Regc.Oci.Transport.Response (regc v0.0.2)

View Source

Response returned by a custom Regc.Oci.Transport.

Header names are normalized case-insensitively by Regc. request_url and source_address are optional metadata used by the built-in transport's redirect and authentication policies. A streaming body supplies an explicit close function so callers can release its transport resource without consuming the complete stream.

Summary

Types

t()

@type t() :: %Regc.Oci.Transport.Response{
  body: binary() | Regc.Oci.Transport.Reader.t(),
  close: (-> :ok | {:error, term()}) | nil,
  headers: %{optional(String.t()) => String.t()},
  metadata: map(),
  request_url: String.t() | nil,
  source_address: Regc.Oci.Transport.Address.address() | nil,
  status: non_neg_integer()
}