ExpressResponse class
Constructors
- ExpressResponse(HttpRequest request, {SessionManager? manager, ExpressRequest? req, Cookie? cookie})
Properties
-
Returns cookies set in HTTP request.
no setter
- express ↔ ExpressRequest?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- headers → dynamic
-
Headers
no setter
- isClosed ↔ bool
-
getter/setter pair
-
locals
↔ Map<
String, dynamic> -
getter/setter pair
- parsedSession → Session
-
no setter
- req ↔ HttpRequest?
-
getter/setter pair
- response → HttpResponse
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
session
→ Future<
Session> -
no setter
- sessionManager ↔ SessionManager?
-
getter/setter pair
- sessionNeedsUpdate → bool
-
Does the session need update?
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onClose(
{bool? session}) → ExpressResponse - Close Stream
-
send(
String data) → ExpressResponse - Return plain text or html
-
sendFile(
String returnFile) → Future< ExpressResponse> - Serve static file
-
set(
String name, Object value) → ExpressResponse -
statusCode(
int statusCode) → ExpressResponse -
toJson(
Map data, {dynamic encode(dynamic)?}) → ExpressResponse - Return Json data
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited