http/response/dox_response
library
Functions
-
back(DoxRequest req, {String fallback = '/'})
→ DoxResponse
-
A 302 redirect to the page the request came from (the
Referer
header), or to fallback when there is none.
-
redirect(String url, {int status = HttpStatus.found})
→ DoxResponse
-
A redirect to
url. 302 by default.
-
response([dynamic content])
→ DoxResponse
-
content can be anything
String, int, Map, json serializable object,
Stream<List<int>>, File
-
sameHostUrl(String? url, String? host)
→ String?
-
url when it points to the same host as the host header, else null.