Request class

Mimics the schema of an HTTP request

Implementers

Constructors

Request({required Uri uri, required HttpVerb verb, Map<String, String>? headers, ContentType? contentType, String? data})
const

Properties

contentType ContentType
final
data String
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uri Uri
final
verb HttpVerb
final

Methods

copyWith({Uri? uri, Map<String, String>? headers}) Request
merge({required List<Request> requests}) Request
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBaseRequest() → BaseRequest
toString() String
A string representation of this object.
inherited

Operators

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