DartnessResponse class Null safety

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.
read-only, inherited
headers Map<String, String>
The HTTP headers with case-insensitive keys. The returned map is unmodifiable.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
statusCode int
The HTTP status code of the response.
read-only

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 non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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