Martti T.

Results 364 comments of Martti T.

note: `curl -H "Content-Type: application/json" --data '{"from":{"name":"test","address":"address"}}' http://localhost:8080/` would work with ```go e.POST("/", func(c echo.Context) error { type NewEmail struct { From mail.Address } dto := &NewEmail{} if err :=...

ContextTimeout middleware replaces Request context with context that has timeout configured to it. This is useful for situations when you would want long running processes not to last longer than...

there are no specific reason why `ContextTimeout` is not documented. I has been forgotten. I am thinking why have we not removed https://echo.labstack.com/docs/middleware/timeout as we actually do not want to...

Vessel that operate on rivers/lakes/canals (inland bodies of water) tend to use (are regulated by) SI units at least here in EU. So km/h (vessel speed) and m/s (wind speed)...

BTW you are asking a lot of downstream application features to be added to this project. meaning all other now need to have to update their projects enums, even if...

This has been changed back and forth in following PRs: * https://github.com/labstack/echox/pull/195 * https://github.com/labstack/echox/pull/158 * https://github.com/labstack/echox/pull/144 * https://github.com/labstack/echox/pull/148 in that exaple the template fragment is defined as `{{define "hello"}}Hello, {{.}}!{{end}}`...

You definitely should not do `ErrJWTMissing.SetInternal(err)` because `ErrJWTMissing` is global and you could introduce data race by mutating it with `SetInternal`. This is because Go standard library HTTP server runs...

have you tried creating your own `config.ErrorHandler` function and return whatever suits you?

Next minor version will revert back to 401. See https://github.com/labstack/echo-jwt/pull/39

I'll tag/release new version on Monday. So those at work will not have Friday surprises and potential weekend incidents.