-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RequestContext
does not include Request
#3964
RequestContext
does not include Request
#3964
Comments
We could allow service class ResponseErrorInterceptor {
*http:ResponseErrorInterceptor;
remote function interceptResponseError(error err, http:RequestContext ctx, http:Request req)
returns http:NextService|error? {
io:println(req.rawPath);
return ctx.next();
}
} @shafreenAnfar will this fulfill your requirement? |
Had a chat with @shafreenAnfar and @chamil321 and come up with the following options :
|
I think given that each has pros and cons, I feel the best option is 1, which results in the below. Request path error handlers -> Request, RequestContext, error |
+1. I also think the same. Using the request at response path error handlers are not very frequent and the impact from changing the values of the request at this level is also minimum. |
We need to fix it.
The text was updated successfully, but these errors were encountered: