http/response/dox_response library

Classes

DoxResponse

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