httpFormRequest method

  1. @override
void httpFormRequest(
  1. String method,
  2. String? url, [
  3. Map? data,
  4. Map<String, String>? headers,
])
override

Processes the HTTP POST(Form)request, returning the server's response via the completion callback.

Implementation

@override
void httpFormRequest(String method, String? url,
    [Map<dynamic, dynamic>? data, Map<String, String>? headers]) {
  // POST CMIS over HTTP
  html.HttpRequest.postFormData(url!, data as Map<String, String>,
      withCredentials: false, responseType: null, requestHeaders: headers)
    ..then(onSuccess)
    ..catchError(onError)
    ..whenComplete(completion);
}