patch static method
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,
Implementation
static Future<HttpUtilResponse> patch(
String url, {
String? body,
List<int> expectedStatusCodes = const [200],
Map<String, String> requestHeaders = const {},
bool returnResponseAsBytes = false,
OnProgressFunc? onProgress,
OnProgressFunc? uploadOnProgress,
http.Client? client,
}) {
return cancelablePatch(
url,
body: body,
expectedStatusCodes: expectedStatusCodes,
requestHeaders: requestHeaders,
returnResponseAsBytes: returnResponseAsBytes,
onProgress: onProgress,
uploadOnProgress: uploadOnProgress,
client: client,
).value;
}