raxx v0.8.0 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 map: %{"content-type" => ["text/plain"]} |
body | The response body, by default an empty string. |
Summary
Functions
Adds a cookie header to the response, that will expire the cookie with the given key
Adds a set cookie header to the response
Functions
Adds a cookie header to the response, that will expire the cookie with the given key.
NOTE: Will not expire session cookies.
Adds a set cookie header to the response.
For options see Raxx.Cookie.Attributes