Martti T.

Results 364 comments of Martti T.

or default error handler https://github.com/labstack/echo/blob/b445958c3ce4cf34997a67ef73a30cd870170945/echo.go#L377-L381 some, if not all, of those middlewares can be changed to return that error to upstream middleware and not to use `c.Error(err)`

Well it depends - except timeout middleware Echo does not try to handle or guess when or how request context ends (`c.Request().Context()`). Currently this is left up to developer to...

Do not close this ticket yet. We might come up with something. Go reader/writer are quite cumbersome (low level) to use if it comes to timeouts/cancellation - I have had...

After thinking and reasoning about why currently router has that behavour. I would say - it is correct. Why would parameter at same place be conceptually different for GET vs...

Third argument for route can be middleware(s) https://github.com/labstack/echo/blob/b065180250530e6434de09ae5a2e4443dc7cb210/echo.go#L412 same way can be used for group also https://github.com/labstack/echo/blob/b065180250530e6434de09ae5a2e4443dc7cb210/echo.go#L552

Could you provide example? For some cases with routes the order how routing is set up is important. When group is created it registers `prefix` and `prefix*` routes with 404handler...

```go api.RegisterHandlersWithBaseURL(e, a, "/v1") e.Group("/v1", firebaseAuthMidl) ``` These two things are completely different. Group in Echo is basically helper that sets prefix and middlewares to routes when you add them...

For frontend you probably want to use websockets https://echo.labstack.com/cookbook/websocket/

@lammel maybe we should consider changing this now. We recently had https://github.com/labstack/echo/discussions/2055#discussioncomment-1879293 and I started to think that this "defaulting" makes `e.Bind()` quite unintuitive or code like that ```go if...

just some quick remarks: * It would be better if you return errors instead of using `c.Error()`. It would allow middlewares up in chain to react on errors * what...