Downstream.Response (Downstream v1.1.0) 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

Specs

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

Specs

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