DartnessResponse class

A http response class that is used in the Dartness framework

Constructors

DartnessResponse({int statusCode = HttpStatus.ok, String? body, Map<String, Object>? headers, Encoding? encoding})
DartnessResponse.fromShelf(Response _response)

Properties

hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
The HTTP headers with case-insensitive keys. The returned map is unmodifiable.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
The HTTP status code of the response.
no setter

Methods

body() Future<String>
Returns a Future containing the body as a string.
bytes() Stream<List<int>>
Returns a Stream representing the body.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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