sendAllOneWay<T> method
Future<void>
sendAllOneWay<T>(
- Iterable<
IReturn< requests, {T> > - WebRequestFilter? requestFilter,
- WebResponseFilter? responseFilter,
override
Implementation
Future<void> sendAllOneWay<T>(Iterable<IReturn<T>> requests,
{WebRequestFilter? requestFilter,
WebResponseFilter? responseFilter}) async {
if (requests.length == 0) return;
var url = combinePaths([oneWayBaseUrl, nameOf(requests.first)! + "[]"]);
await this.sendRequest<List<T>>(SendWebContext(
method: "POST",
request: requests.toList(),
uri: createUri(url),
responseAs: <T>[],
requestFilter: requestFilter,
responseFilter: responseFilter));
}