Requests class

Constructors

Requests()
const

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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

Static Properties

onError → Event
final

Static Methods

clearStoredCookies(String hostname) Future
delete(String url, {Map<String, String> headers, dynamic json, dynamic body, Map<String, dynamic> queryParameters, int port, RequestBodyEncoding bodyEncoding = DEFAULT_BODY_ENCODING, int timeoutSeconds = DEFAULT_TIMEOUT_SECONDS, bool persistCookies = true, bool verify = true}) Future<Response>
extractResponseCookies(dynamic responseHeaders) Map<String, String>
get(String url, {Map<String, String> headers, Map<String, dynamic> queryParameters, int port, dynamic json, dynamic body, RequestBodyEncoding bodyEncoding = DEFAULT_BODY_ENCODING, int timeoutSeconds = DEFAULT_TIMEOUT_SECONDS, bool persistCookies = true, bool verify = true}) Future<Response>
getHostname(String url) String
getStoredCookies(String hostname) Future<Map<String, String>>
patch(String url, {Map<String, String> headers, int port, dynamic json, dynamic body, Map<String, dynamic> queryParameters, RequestBodyEncoding bodyEncoding = DEFAULT_BODY_ENCODING, int timeoutSeconds = DEFAULT_TIMEOUT_SECONDS, bool persistCookies = true, bool verify = true}) Future<Response>
post(String url, {dynamic json, int port, dynamic body, Map<String, dynamic> queryParameters, RequestBodyEncoding bodyEncoding = DEFAULT_BODY_ENCODING, Map<String, String> headers, int timeoutSeconds = DEFAULT_TIMEOUT_SECONDS, bool persistCookies = true, bool verify = true}) Future<Response>
put(String url, {int port, dynamic json, dynamic body, Map<String, dynamic> queryParameters, RequestBodyEncoding bodyEncoding = DEFAULT_BODY_ENCODING, Map<String, String> headers, int timeoutSeconds = DEFAULT_TIMEOUT_SECONDS, bool persistCookies = true, bool verify = true}) Future<Response>
setStoredCookies(String hostname, Map<String, String> cookies) Future

Constants

DEFAULT_BODY_ENCODING → const RequestBodyEncoding
RequestBodyEncoding.FormURLEncoded
DEFAULT_TIMEOUT_SECONDS → const int
10