DartnessRequest class Null safety

A http request class that is used in the Dartness framework

Constructors

DartnessRequest(String method, Uri uri, {Map<String, Object>? headers, Object? body, Encoding? encoding})
DartnessRequest.fromShelf(Request _request)

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
method String
The http method associated with the request.
read-only
requestedUri Uri
The original requested Uri.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
url Uri
The requested url relative to the current handler path.
read-only

Methods

body() Future<String>
The body as a string.
bytes() Stream<List<int>>
The body as a byte array stream.
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