HttpSender typedef

HttpSender = Future<int> Function(Uri endpoint, String token, List<int> body)

Pluggable transport — return the HTTP status of the POST, or throw on network failure. The default uses dart:io.HttpClient.

Implementation

typedef HttpSender = Future<int> Function(
  Uri endpoint,
  String token,
  List<int> body,
);