AppContext extension
- on
Properties
-
Available on BuildContext, provided by the AppContext extension
The cookies sent with the current request.no setter -
headers
→ Map<
String, String> -
Available on BuildContext, provided by the AppContext extension
The HTTP headers of the current request with case-insensitive keys.no setter -
headersAll
→ Map<
String, List< String> > -
Available on BuildContext, provided by the AppContext extension
The HTTP headers of the current request with multiple values with case-insensitive keys.no setter - url → String
-
Available on BuildContext, provided by the AppContext extension
The url of the current request.no setter
Methods
-
setCookie(
String name, String value, {DateTime? expires, int? maxAge, String? domain, String? path, bool secure = false, bool httpOnly = true, SameSite? sameSite}) → void -
Available on BuildContext, provided by the AppContext extension
Sets the cookie with the given name and value in the response. -
setHeader(
String name, String value) → void -
Available on BuildContext, provided by the AppContext extension
Sets the response header with the given name and value. -
setStatusCode(
int statusCode, {String? responseBody}) → void -
Available on BuildContext, provided by the AppContext extension
Sets the response status code.