Response class
Methods
-
clearCookies()
→ FutureOr
-
-
flashMessage(String reason, dynamic message)
→ Future
-
-
HTML(String htmlString)
→ Future
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
redirect(String url, [int? statusCode])
→ Future
-
-
removeCookies(String key)
→ FutureOr
-
-
renderHTML(String htmlFile)
→ Future
-
-
sendCustomErrorFile(int code, dynamic htmlFile)
→ Future<void>
-
-
sendInternalError()
→ Future<void>
-
-
sendJson(dynamic message)
→ Future
-
-
sendNotFound()
→ Future<void>
-
-
sendString(dynamic message)
→ Future
-
-
setCookies(String key, dynamic value, [DateTime? expireOn, bool? isSecure = true, bool httpOnly = true, int maxage = 15])
→ FutureOr
-
-
setCors({String Methods = 'GET, POST, PUT, PATCH, DELETE', int MaxAge = 36000, String Origins = '*'})
→ dynamic
-
-
-
Template(String html, [Map? data = const {'' : ''}])
→ FutureOr
-
-
toString()
→ String
-
A string representation of this object.
inherited