runRequest method
Passes request through all plugins' onRequest hooks in order.
Implementation
Future<ApiRequest> runRequest(ApiRequest request) async {
var current = request;
for (final plugin in plugins) {
current = await plugin.onRequest(current);
}
return current;
}