TransportRequest class final

One HTTP request the client sends.

Constructors

TransportRequest({required String method, required Uri url, required Map<String, String> headers, String? body})
Creates a request.
const

Properties

body → String?
JSON body of a POST; null for GET.
final
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, String>
Request headers (Accept, Authorization, Content-Type).
final
method → String
GET or POST.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
url → Uri
Full URL with the query string.
final

Methods

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