sendAll<T> method
Future<List<T> >
sendAll<T>(
- Iterable<
IReturn< requests, {T> > - RequestFilter? requestFilter,
- ResponseFilter? responseFilter,
override
Implementation
Future<List<T>> sendAll<T>(Iterable<IReturn<T>> requests,
{RequestFilter? requestFilter, ResponseFilter? responseFilter}) async {
if (requests.length == 0) return <T>[];
var url = combinePaths([replyBaseUrl, nameOf(requests.first)! + "[]"]);
return this.sendRequest<List<T>>(SendContext(
method: "POST",
request: requests.toList(),
uri: createUri(url),
responseAs: <T>[],
requestFilter: requestFilter,
responseFilter: responseFilter));
}