IsolateHttp class

Isolate Http

head, get, post, put, delete, send

Constructors

IsolateHttp({Duration? timeout, String? debugLabel})
Create an IsolateHttp

Properties

hashCode int
The hash code for this object.
no setterinherited
listener ← (dynamic Function(String)?)
no getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete(String url, {Map<String, String>? query, Map<String, String>? headers, Object? body}) Future<IsolateHttpResponse?>
Sends an HTTP DELETE request with the given headers to the given URL.
get(String url, {Map<String, String>? query, Map<String, String>? headers}) Future<IsolateHttpResponse?>
Sends an HTTP GET request with the given headers to the given URL.
Sends an HTTP HEAD request with the given headers to the given URL.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post(String url, {Map<String, String>? query, Map<String, String>? headers, Object? body, List<HttpFile>? files}) Future<IsolateHttpResponse?>
Sends an HTTP POST request with the given headers and body to the given URL.
put(String url, {Map<String, String>? query, Map<String, String>? headers, Object? body, List<HttpFile>? files}) Future<IsolateHttpResponse?>
Sends an HTTP PUT request with the given headers and body to the given URL.
send(IsolateHttpRequest request) Future<IsolateHttpResponse?>
Sends an IsolateHttpRequest and returns the IsolateHttpResponse.
toString() String
A string representation of this object.
inherited

Operators

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