Request class

Request holds request data for the HTTP call. Each request has a unique id. It is used to track the request throughout the queue.

Constructors

Request({required String url, String method = "GET", Map<String, String> headers = const {}, RequestBody? body, bool? verbose, bool? verifySSL, List<HTTPVersion>? httpVersions, Duration? timeout, Duration? connectTimeout})
Request.delete({required String url, Map<String, String>? headers})
factory
Request.get({required String url, Map<String, String>? headers})
factory
Request.post({required String url, Map<String, String>? headers, RequestBody? body})
factory
Request.put({required String url, Map<String, String>? headers, RequestBody? body})
factory

Properties

body RequestBody?
final
connectTimeout Duration?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
final
httpVersions List<HTTPVersion>?
getter/setter pair
id String
final
method String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeout Duration?
getter/setter pair
url String
final
userAgent String?
getter/setter pair
verbose bool?
getter/setter pair
verifySSL bool?
getter/setter pair

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