post method
Sends a POST request to the specified url.
Implementation
Future<http.Response> post(
(Uri, Map<String, String>) composedRequest, {
Duration timeout = const Duration(seconds: 30),
Map<String, String>? headers,
}) async {
final url = composedRequest.$1;
final body = composedRequest.$2;
return await http
.post(url, headers: headers, body: body)
.handleExceptions(timeout: timeout);
}