raxx v0.14.9 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
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.