Martti T.

Results 364 comments of Martti T.

ok, I see. Currently then the path param is last segment in path it does not match empty values. This is why you get 405 as it matches path for...

note to self: this line is probably the reason why empty path params at the end are not matched https://github.com/labstack/echo/blob/584cb85a6b749846ac26a8cd151244ab281f2abc/router.go#L654 and same reason why empty any segment works is here...

One workaround would be to change from `e.POST("a/b/:uid", h)` to `e.POST("a/b/*", h)` and access `c.Param("uid")` with `c.Param("*")`. Path params (`:uid`) and match-any (`*`) work little bit differently when comes to...

We can not remove JWT middleware from this repo due backwards compatibility promises we are trying to keep. https://github.com/labstack/echo-jwt was created just for this reason - we could do these...

Do you mean something like these Gin examples are: * https://github.com/gin-gonic/examples/blob/master/server-sent-event/main.go * https://dev.to/mirzaakhena/server-sent-events-sse-server-implementation-with-go-4ck2 * https://github.com/lmas/gin-sse/blob/master/sse_handler.go "SSE server" would probably fit better as separate library. p.s. to be honest this does...

Hi, Could people here specify in which situation you would like to use SSE? For example if we are talking about broadcasting SSE messages to all connected clients - For...

If you do not need broadcasting you can just create Event structure and WriteTo method for it ```go // Event structure is defined here: https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#event_stream_format type Event struct { ID...

I do not know if this makes sense. If we leave out usual middleware boilerplate what you need is ```go func AllowContentType(contentTypes ...string) echo.MiddlewareFunc { return func(next echo.HandlerFunc) echo.HandlerFunc {...

This is probably best to leave as is (until `v5`). Adding/exposing another public API variable, and now having to maintain two exactly same errors (with different name), has longer effect...

Could you be more specific?