httpRequest method

Future httpRequest(
  1. String url, {
  2. String method = 'GET',
})

Basic method where only a URL and a method is passed. Wilt applies no checks to this URL nor does it add the database, the format of this is entirely up to the user.

This can be used for CouchDb functions that are not directly supported by Wilt, e.g views, attachments and design documents.

Implementation

Future<dynamic> httpRequest(String url, {String method = 'GET'}) =>
    _httpRequest(method, url);