HttpRequest class

A transport-level request. Base URL resolution and auth-header attachment happen before this value is built (see the client tree / IAuth seam).

Annotations

Constructors

HttpRequest({required HttpMethod method, required Uri url, Map<String, String> headers = const <String, String>{}, String? body})
const

Properties

body → String?
final
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, String>
final
method → HttpMethod
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
url → Uri
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
withUrl(Uri url) → HttpRequest

Operators

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