You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During its execution, Before interceptor can change the request (For example: add headers, query, path, body, etc). Similarly, After can act upon the Response object.
Example
Before
Lets say we want to set a and b query parameters in the request.
resty.BeforesetQuery(int a, int b) => (resty.RouteBase route) {
route.query("a", a);
route.query("b", b);
};
After
Lets say we want to print the result in the interceptor after the request is made: