-
-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Labels
Description
Since the HTTP Response body is a getter, we need a way to modify the Response body after it's fetched.
For example:
`
class APIInterceptors extends InterceptorContract {
@OverRide
Future interceptRequest({required RequestData data}) async {
return data;
}
@OverRide
Future interceptResponse({required ResponseData data}) async {
data.body = someMethodMakeSomeModifications(data.body);
return data;
}
}
`