raxx v1.0.1 Raxx.Response
HTTP responses from a Raxx application are encapsulated in a Raxx.Response
struct.
The contents are itemised below:
status | The HTTP status code for the response: 1xx, 2xx, 3xx, 4xx, 5xx |
headers | The response headers as a list: [{"content-type", "text/plain"} |
body | The response body, by default an empty string. |
Link to this section Summary
Link to this section Types
Link to this type
status_code()
status_code()
status_code() :: integer()
status_code() :: integer()
Integer code for server response type
Link to this type
t()
t()
t() :: %Raxx.Response{
body: Raxx.body(),
headers: Raxx.headers(),
status: status_code()
}
t() :: %Raxx.Response{ body: Raxx.body(), headers: Raxx.headers(), status: status_code() }
Elixir representation for an HTTP response.