post static method

Future<ResponseInfo> post(
  1. Uri uri, {
  2. Map<String, String>? data,
  3. List<FilePart>? fileParts,
  4. RequestInfo? requestInfo,
})

Makes a POST request to the given uri. The data is passed in the body of the request, using the content-type application/x-www-form-urlencoded.

if fileParts is provided and not empty, the request will be sent as a multipart request.