HttpUtil class

Constructors

HttpUtil.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

cancelableDelete(String url, {List<int> expectedStatusCodes = const [200], Map<String, String> requestHeaders = const {}, bool returnResponseAsBytes = false, OnProgressFunc? onProgress, Client? client}) → CancelableOperation<HttpUtilResponse>
cancelableGet(String url, {List<int> expectedStatusCodes = const [200], Map<String, String> requestHeaders = const {}, bool returnResponseAsBytes = false, OnProgressFunc? onProgress, Client? client}) → CancelableOperation<HttpUtilResponse>
cancelableHead(String url, {List<int> expectedStatusCodes = const [200], Map<String, String> requestHeaders = const {}, Client? client}) → CancelableOperation<HttpUtilResponse>
cancelablePatch(String url, {String? body, List<int> expectedStatusCodes = const [200], Map<String, String> requestHeaders = const {}, bool returnResponseAsBytes = false, OnProgressFunc? onProgress, OnProgressFunc? uploadOnProgress, Client? client}) → CancelableOperation<HttpUtilResponse>
cancelablePost(String url, {String? body, List<int> expectedStatusCodes = const [200], Map<String, String> requestHeaders = const {}, bool returnResponseAsBytes = false, OnProgressFunc? onProgress, OnProgressFunc? uploadOnProgress, Client? client}) → CancelableOperation<HttpUtilResponse>
cancelablePostFormData(String url, Map<String, String> fields, Map<String, File> files, {List<int> expectedStatusCodes = const [200], Map<String, String> requestHeaders = const {}, bool returnResponseAsBytes = false, OnProgressFunc? onProgress, OnProgressFunc? uploadOnProgress, Client? client}) → CancelableOperation<HttpUtilResponse>
cancelablePut(String url, {String? body, List<int> expectedStatusCodes = const [200], Map<String, String> requestHeaders = const {}, bool returnResponseAsBytes = false, OnProgressFunc? onProgress, OnProgressFunc? uploadOnProgress, Client? client}) → CancelableOperation<HttpUtilResponse>
delete(String url, {List<int> expectedStatusCodes = const [200], Map<String, String> requestHeaders = const {}, bool returnResponseAsBytes = false, OnProgressFunc? onProgress, Client? client}) Future<HttpUtilResponse>
get(String url, {List<int> expectedStatusCodes = const [200], Map<String, String> requestHeaders = const {}, bool returnResponseAsBytes = false, OnProgressFunc? onProgress, Client? client}) Future<HttpUtilResponse>
patch(String url, {String? body, List<int> expectedStatusCodes = const [200], Map<String, String> requestHeaders = const {}, bool returnResponseAsBytes = false, OnProgressFunc? onProgress, OnProgressFunc? uploadOnProgress, Client? client}) Future<HttpUtilResponse>
post(String url, {String? body, List<int> expectedStatusCodes = const [200], Map<String, String> requestHeaders = const {}, bool returnResponseAsBytes = false, OnProgressFunc? onProgress, OnProgressFunc? uploadOnProgress, Client? client}) Future<HttpUtilResponse>
postFormData(String url, Map<String, String> fields, Map<String, File> files, {List<int> expectedStatusCodes = const [200], Map<String, String> requestHeaders = const {}, bool returnResponseAsBytes = false, OnProgressFunc? onProgress, OnProgressFunc? uploadOnProgress, Client? client}) Future<HttpUtilResponse>
put(String url, {String? body, List<int> expectedStatusCodes = const [200], Map<String, String> requestHeaders = const {}, bool returnResponseAsBytes = false, OnProgressFunc? onProgress, OnProgressFunc? uploadOnProgress, Client? client}) Future<HttpUtilResponse>