put method

Future<HTTPResult> put(
  1. String endpoint, {
  2. Object? body,
  3. Map<String, String>? headers,
  4. bool requiresAuth = true,
  5. Duration? timeout,
})

Perform PUT request

Implementation

Future<HTTPResult> put(
  String endpoint, {
  Object? body,
  Map<String, String>? headers,
  bool requiresAuth = true,
  Duration? timeout,
}) async {
  return _request(
    method: 'PUT',
    endpoint: endpoint,
    body: body,
    headers: headers,
    requiresAuth: requiresAuth,
    timeout: timeout,
  );
}