put method
Future<HttpResponse>
put(
- HttpClient httpClient,
- String path, {
- bool fullPath = false,
- Credential? authorization,
- Object? body,
- String? contentType,
- String? accept,
- OnCachedResponse? onStaleResponse,
- Duration? staleResponseDelay,
Does a PUT request.
- See requestURL documentation.
Implementation
Future<HttpResponse> put(HttpClient httpClient, String path,
{bool fullPath = false,
Credential? authorization,
Object? body,
String? contentType,
String? accept,
OnCachedResponse? onStaleResponse,
Duration? staleResponseDelay}) async {
return request(httpClient, HttpMethod.PUT, path,
fullPath: fullPath,
authorization: authorization,
body: body,
contentType: contentType,
accept: accept,
onStaleResponse: onStaleResponse,
staleResponseDelay: staleResponseDelay);
}