ankh v0.10.0 Ankh.HTTP.Response
Ankh HTTP Response
Link to this section Summary
Link to this section Types
Link to this type
status()
Specs
status() :: non_neg_integer()
Response status
Specs
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)
Specs
Link to this function
fetch_header_values(request, header)
Specs
fetch_header_values(t(), Ankh.HTTP.header_name()) :: [Ankh.HTTP.header_value()]
Link to this function
fetch_trailer_values(request, trailer)
Specs
fetch_trailer_values(t(), Ankh.HTTP.header_name()) :: [Ankh.HTTP.header_value()]
Link to this function
new(attrs \\ [])
Specs
Link to this function
put_header(request, name, value)
Specs
put_header(t(), Ankh.HTTP.header_name(), Ankh.HTTP.header_value()) :: t()
Link to this function
put_headers(request, headers)
Specs
put_headers(t(), Ankh.HTTP.headers()) :: t()
Link to this function
put_trailer(request, name, value)
Specs
put_trailer(t(), Ankh.HTTP.header_name(), Ankh.HTTP.header_value()) :: t()
Link to this function
put_trailers(request, trailers)
Specs
put_trailers(t(), Ankh.HTTP.headers()) :: t()
Link to this function
set_body(response, body)
Specs
Link to this function
set_status(response, status)
Specs
Link to this function