IsolateHttp class Null safety
Isolate Http
Constructors
- IsolateHttp({Duration? timeout, String? debugLabel})
- Create an IsolateHttp
Properties
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.
-
head(
String url, {Map< String, String> ? query, Map<String, String> ? headers}) → Future<IsolateHttpResponse?> - Sends an HTTP HEAD request with the given headers to the given URL.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent 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