ExceptionHandler for send requests and proxy responses in HttpProxy
/ReverseProxy
#114
Labels
enhancement
New feature or request
HttpProxy
/ReverseProxy
#114
Describe the feature
In case any interceptor fails with an exception, it is handled as a
502
.We propose to introduce an
exceptionHandler
in theHttpProxy
to customize this behavior, analogously it is done in theHttpServerRequest
,HttpServerResponse
and many others.Relevant code:
(Source: https://github.com/eclipse-vertx/vertx-http-proxy/blob/4.5.13/src/main/java/io/vertx/httpproxy/impl/ReverseProxy.java#L78-L87)
Use cases
When applying interceptors, the proxy may want to return status codes that differ to the hard-coded
502
.Contribution
I volunteer to implement this feature.
We propose to add the following methods to
HttpProxy
andReverseProxy
:Alternatively, only
exceptionHandler
may be added that is to be used on both request and responses.The text was updated successfully, but these errors were encountered: