Response class

Constructors

Response(HttpResponse _res)

Properties

bufferOutput bool
read-only
connectionInfo HttpConnectionInfo
read-only
contentLength int
read-only
cookies List<Cookie>
read-only
deadline Duration
read / write
done Future
read-only
encoding Encoding
read-only
hashCode int
The hash code for this object. [...]
read-only, override
headers HttpHeaders
read-only
headersSent bool
read-only
persistentConnection bool
read / write
reasonPhrase String
read-only
statusCode int
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

add(dynamic data) → dynamic
addError(dynamic data, [StackTrace stacktrace]) → dynamic
addStream(Stream<List<int>> stream) Future
close() Future
detachSocket({bool writeHeaders: true}) Future<Socket>
flush() Future
json(Object json) Future
redirect(Uri location, {int status: HttpStatus.movedTemporarily}) Future
send(String message, {ContentType contentType}) Future
status(int code) Response
write(dynamic obj) → void
writeAll(Iterable objects, [String separator = ""]) → void
writeCharCode(int charCode) → void
writeln([Object obj = ""]) → void
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

Operators

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