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