Constructs a 303 See Other response.
This indicates that the response to the request should be retrieved using
a GET request to a new URI. location
is that URI; it can be either a
String
or a Uri
. It's automatically set as the Location header in
headers
.
body
is the response body. It may be either a String
, a
Stream
, or >
null
to indicate no body. If it's a String
,
encoding
is used to encode it to a Stream
. It defaults to
UTF-8.>
If encoding
is passed, the "encoding" field of the Content-Type header
in headers
will be set appropriately. If there is no existing
Content-Type header, it will be set to "application/octet-stream".
Source
Response.seeOther(location, {body, Map<String, String> headers,
Encoding encoding, Map<String, Object> context})
: this._redirect(303, location, body, headers, encoding,
context: context);