I have a logging middleware function which has an option to dump the http requests. With the latest changes echo.Request() returns a Request interface but not the original http request. In order to dump the http request with httputil I need the original request.
Do you have any thoughts about this?
No way to make it work across different engines as fasthttp does not build on top of standard net/http.
However, if you know that you use standard engine, the following might work:
import "github.com/labstack/echo/engine/standard"
ctx.Request().(*standard.Request).Request
That is how you will get your original object's back.
Most helpful comment
No way to make it work across different engines as
fasthttpdoes not build on top of standardnet/http.However, if you know that you use standard engine, the following might work: