ByteResponse class Null safety

Response that writes the bytes provided in body to the response.

Inheritance

Constructors

ByteResponse({List<int>? body, int statusCode = 200, Map<String, dynamic>? headers, String? mimeType, String? charset, List<Cookie>? cookies})

Properties

body List<int>?
Body of the response
read / write, inherited
cookies List<Cookie>
Cookies
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
headers JaguarHttpHeaders
Headers
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
statusCode int
Status code of the response
read / write, inherited

Methods

deleteCookie(String name, {String path = '/'}) → void
deleteCookie deletes a cookie with given name. Use path to specify the path from which the cookie has to be removed.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited
writeAllButBody(HttpResponse resp) → void
inherited
writeResponse(HttpResponse resp) → void
Writes body of the HTTP response from body property [...]
override

Operators

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