httpRequest method

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

Processes the HTTP request, returning the server's response via the completion callback.

Implementation

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