I'm trying to integrate this into a small service within a cluster I run and I've found that a failed proxy requests by default result in an empty server response with no error message server side. I've found that this comes from one somewhat unsafe ? unwrap in the internal proxy.
I've slightly modified this so that there is now a handle_error on the HttpHandler trait that takes the error from hyper and returns a response. By default I have it returning a 502 Bad Gateway.
I'm trying to integrate this into a small service within a cluster I run and I've found that a failed proxy requests by default result in an empty server response with no error message server side. I've found that this comes from one somewhat unsafe
?
unwrap in the internal proxy.I've slightly modified this so that there is now a
handle_error
on the HttpHandler trait that takes the error from hyper and returns a response. By default I have it returning a502 Bad Gateway
.