Downstream v1.0.0 Downstream.Response View Source

The Downstream.Response module provides a struct for storing response information, including status code and headers.

Link to this section Summary

Link to this section Types

Link to this type

headers() View Source
headers() ::
  [{atom(), binary()}]
  | [{binary(), binary()}]
  | %{optional(binary()) => binary()}
  | any()

Link to this type

t() View Source
t() :: %Downstream.Response{
  device: IO.device(),
  headers: headers(),
  status_code: non_neg_integer()
}