raxx v0.14.9 Raxx.Response

HTTP responses from a Raxx application are encapsulated in a Raxx.Response struct.

The contents are itemised below:

statusThe HTTP status code for the response: 1xx, 2xx, 3xx, 4xx, 5xx
headersThe response headers as a list: [{"content-type", "text/plain"}
bodyThe response body, by default an empty string.

Link to this section Summary

Types

Integer code for server response type

t()

Elixir representation for an HTTP response

Link to this section Types

Link to this type status_code()
status_code() :: integer()

Integer code for server response type

Link to this type t()
t() :: %Raxx.Response{body: Raxx.body(), headers: Raxx.headers(), status: status_code()}

Elixir representation for an HTTP response.