Redirect class

Response that redirects to the URI specified by value

Inheritance

Constructors

Redirect(Uri value, {dynamic statusCode: HttpStatus.movedPermanently, Map<String, dynamic> headers})
Redirect.found(dynamic value, {Map<String, dynamic> headers, dynamic statusCode: HttpStatus.movedTemporarily})
Performs 'moved temporarily' (status code: 302) redirect
factory
Redirect.permanentRedirect(dynamic value, {Map<String, dynamic> headers, dynamic statusCode: 308})
Performs 'permanent redirect' (status code: 308) redirect
factory
Redirect.seeOther(dynamic value, {Map<String, dynamic> headers, dynamic statusCode: HttpStatus.seeOther})
Performs 'see other' (status code: 303) redirect
factory
Redirect.temporaryRedirect(dynamic value, {Map<String, dynamic> headers, dynamic statusCode: HttpStatus.temporaryRedirect})
Performs 'temporary redirect' (status code: 307) redirect
factory

Properties

cookies List<Cookie>
Cookies
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
headers JaguarHttpHeaders
Headers
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
statusCode int
Status code of the response
read / write, inherited
value Uri
Body of the response
read / write, inherited

Methods

deleteCookie(String name, {String path: '/'}) → void
deleteCookie deletes a cookie with given name. Use path to specify the path from which the cookie has to be removed.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited
writeAllButBody(HttpResponse resp) → void
inherited
writeResponse(HttpResponse resp) Future<void>
Writes body of the HTTP response from value property [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited