command_http library


Request for reuest(),let test more easily


doPost(Request r) Future<List<int>>
doPost send action bytes to remote url and return response bytes, this function will use contract to fix error
emmitError(Request r) → dynamic
emmitError send error to onError
giveup(dynamic e) → dynamic
giveup brodcast event then return null
post(Client client, String url, Uint8List bytes, int timeout, int slow, Function onError) Future<List<int>>
post call request() and broadcast network slow if request time is longer than slow
retry(Contract contr, dynamic fail, Request r) Future<List<int>>
retry use contract, broadcast event when failed