DartnessRequest class

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.
no setterinherited
headers Map<String, String>
The HTTP headers with case-insensitive keys. The returned map is unmodifiable.
no setter
method String
The http method associated with the request.
no setter
requestedUri Uri
The original requested Uri.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url Uri
The requested url relative to the current handler path.
no setter

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 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