Request class

Annotations
  • @immutable

Constructors

Request(String method, String url, {dynamic body, Map<String, dynamic> parameters = const {}, Map<String, String?> headers = const {}, bool authenticated = true})

Properties

authenticated bool
final
body → dynamic
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String?>
final
method String
final
parameters Map<String, dynamic>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
replace({HttpMethod? method, String? url, Map<String, dynamic>? parameters, Map<String, String?>? headers, Encoding? encoding}) Request
replaceBody(dynamic body, {HttpMethod? method, String? url, Map<String, dynamic>? parameters, Map<String, String>? headers, Encoding? encoding}) Request
toHttpRequest(String? baseUrl) → BaseRequest
toString() String
A string representation of this object.
inherited

Operators

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