put method
Does a PUT request.
Implementation
Future<HttpResponse> put(String path,
{Map<String, String>? headers,
bool fullPath = false,
Credential? authorization,
Map<String, Object?>? parameters,
String? queryString,
Object? body,
String? contentType,
String? accept,
String? responseType,
ProgressListener? progressListener}) async {
var parametersMapStr = _toParametersMapOfString(parameters);
var url = _buildURL(path, fullPath, parametersMapStr);
var retUrlParameters =
_buildURLAndParameters(url, parametersMapStr, queryString);
url = retUrlParameters.key;
parametersMapStr = retUrlParameters.value;
var requestAuthorization = await _buildRequestAuthorization(authorization);
return _clientRequester.requestPUT(this, url,
headers: headers,
authorization: requestAuthorization,
queryParameters: parametersMapStr,
body: body,
contentType: contentType,
accept: accept,
responseType: responseType,
progressListener: progressListener);
}