Ankh.HTTP.Response (ankh v0.17.0)
Ankh HTTP Response
Link to this section Summary
Link to this section Types
Link to this type
status()
@type status() :: pos_integer()
Response status
@type 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)
Link to this function
new(attrs \\ [])
Link to this function
set_body(response, body)
Link to this function
set_status(response, status)
Link to this function
validate_headers(headers, strict, forbidden \\ [])
@spec validate_headers(Ankh.HTTP.headers(), boolean(), [Ankh.HTTP.header_name()]) :: :ok | {:error, :protocol_error}