send method

Future<DVHttpResponse> send(
  1. String method,
  2. String path, {
  3. Map<String, Object?>? body,
})

Sends one request to the application's own backend as this session: the bearer token on a device, the cookie and CSRF token in a browser.

For the framework's own endpoints that act for the signed-in person, such as DV.Purchases verifying a receipt. Generated backend function calls already go through the generated client.

Implementation

Future<DVHttpResponse> send(
  String method,
  String path, {
  Map<String, Object?>? body,
}) =>
    _request(method, path, body: body, bearer: _token);