HTTPController class abstract

Mixed-in types
Annotations

Constructors

HTTPController()

Properties

app Application
no setterinherited
config AppConfig
no setterinherited
expectsJson bool
no setter
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, dynamic>
no setter
params Map<String, dynamic>
no setter
queryParams Map<String, dynamic>
no setter
request Request
latefinal
requestBody → dynamic
no setter
response Response
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
session Session?
no setter

Methods

badRequest([String? message]) Response
jsonResponse(dynamic data, {int statusCode = 200}) Response
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notFound([String? message]) Response
redirectTo(String url, {int statusCode = 302}) Response
toString() String
A string representation of this object.
inherited

Operators

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