send method

Future<Response> send()

Implementation

Future<http.Response> send() {
  switch (_method) {
    case 'GET':
    case 'DELETE':
      return _acceptedMethods[_method]!(Uri.parse(_url), headers: _headers);
    default:
      return _acceptedMethods[_method]!(Uri.parse(_url),
          headers: _headers, body: jsonEncode(_payload));
  }
}