httpFormDataRequest method

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

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

Implementation

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