patch method

Future<AlphaXResponse> patch(
  1. String path, {
  2. Map<String, Object?>? queryParameters,
  3. Map<String, String>? headers,
  4. Object? data = _alphaXDataNotSupplied,
  5. AlphaXBody? body,
  6. Duration? timeout,
  7. AlphaXCancellationToken? cancellationToken,
})

Sends a PATCH request to path.

data and body follow the same rules as post.

Implementation

Future<AlphaXResponse> patch(
  String path, {
  Map<String, Object?>? queryParameters,
  Map<String, String>? headers,
  Object? data = _alphaXDataNotSupplied,
  AlphaXBody? body,
  Duration? timeout,
  AlphaXCancellationToken? cancellationToken,
}) => _send(
  HttpMethod.patch,
  path,
  queryParameters: queryParameters,
  headers: headers,
  data: data,
  body: body,
  timeout: timeout,
  cancellationToken: cancellationToken,
);