postForFullResponse static method

Future<Response> postForFullResponse(
  1. String url, {
  2. String? body,
  3. Map<String, String>? queryParameters,
  4. Map<String, String>? headers,
})

Sends a HTTP POST request to the given url with the given body, queryParameters and headers. Returns the full Response object.

Implementation

static Future<Response> postForFullResponse(String url,
    {String? body,
    Map<String, String>? queryParameters,
    Map<String, String>? headers}) async {
  return await _post(url,
      body: body,
      queryParameters: queryParameters,
      headers: headers,
      returnType: HttpRequestReturnType.FULLRESPONSE) as Response;
}