http
library
Functions
-
delete(String url, {Object? body, Encoding? encoding})
→ Future<Response>
-
Sends an HTTP DELETE request with the given headers to the given URL.
-
get(String url, {})
→ Future<Response>
-
Sends an HTTP GET request with the given headers to the given URL.
-
head(String url, {})
→ Future<Response>
-
Sends an HTTP HEAD request with the given headers to the given URL.
-
multipart(String url, {String method = 'POST', Map<String, String>? body, String fileDataParam = 'file', List<FileData>? fileData})
→ Future<Response>
-
Sends an HTTP multipart request with the given headers or body or file to the given URL.
-
patch(String url, {Object? body, Encoding? encoding})
→ Future<Response>
-
Sends an HTTP PATCH request with the given headers and body to the given
URL.
-
post(String url, {Object? body, Encoding? encoding})
→ Future<Response>
-
Sends an HTTP POST request with the given headers and body to the given URL.
-
put(String url, {Object? body, Encoding? encoding})
→ Future<Response>
-
Sends an HTTP PUT request with the given headers and body to the given URL.