Request class

Annotations
  • @immutable

Constructors

Request(String method, String url, String baseUrl, {dynamic body, Options? options, Map<String, dynamic> parameters = const {}, Map<String, String> headers = const {}, bool multipart = false, List<PartValue> parts = const []})
const

Properties

baseUrl String
final
body → dynamic
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
final
isJson bool
no setter
method String
final
multipart bool
final
options → Options?
final
parameters Map<String, dynamic>
final
parts List<PartValue>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
final

Methods

addHead(String name, String value) → dynamic
buildHeaders() Map<String, String>
buildUri() Uri
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
replace({String? method, String? url, dynamic body, Map<String, dynamic>? parameters, Map<String, String>? headers, Encoding? encoding, List<PartValue>? parts, bool? multipart, String? baseUrl}) Request
toString() String
A string representation of this object.
inherited

Operators

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