ankh v0.8.0 Ankh.HTTP.Response

Ankh HTTP Response

Link to this section Summary

Types

Response status

t()

Link to this section Types

Link to this type

status()

status() :: non_neg_integer()

Response status

Link to this type

t()

t() :: %Ankh.HTTP.Response{
  body: Ankh.HTTP.body(),
  body_fetched: boolean(),
  complete: boolean(),
  headers: Ankh.HTTP.headers(),
  status: status(),
  trailers: Ankh.HTTP.headers()
}

Link to this section Functions

Link to this function

fetch_body(response)

fetch_body(t()) :: t()
Link to this function

fetch_header_values(map, name)

fetch_header_values(t(), Ankh.HTTP.header_name()) :: [Ankh.HTTP.header_value()]
Link to this function

new(attrs \\ [])

new(keyword()) :: t()
Link to this function

put_header(response, name, value)

put_header(t(), Ankh.HTTP.header_name(), Ankh.HTTP.header_value()) :: t()
Link to this function

put_trailer(response, name, value)

put_trailer(t(), Ankh.HTTP.header_name(), Ankh.HTTP.header_value()) :: t()
Link to this function

set_body(response, body)

set_body(t(), iodata()) :: t()
Link to this function

set_status(response, status)

set_status(t(), status()) :: t()