Martti T.
Martti T.
Closing, #39 did this change. Thank to @gerardsn for proposing this.
you could create custom IPExtrator https://github.com/labstack/echo/blob/98ca08e7dd64075b858e758d6693bf9799340756/ip.go#L213 and set to echo.IPExtractor https://github.com/labstack/echo/blob/98ca08e7dd64075b858e758d6693bf9799340756/echo.go#L99
Hi, I we can not accept this as adding new method to Context interface would be API breaking change as that type is an Interface. I think you would be...
note to self: * do some naive `"` escaping (although user does not necessarily use JSON format for their `middleware.LoggerConfig.Format` and we may break their expectations after this change -...
I'll pretty much copy standard library json appendString function.
@Drahflow Thank for pointing this out. Fix for this is included in the new minor version release [v4.14.0](https://github.com/labstack/echo/releases/tag/v4.14.0).
You want to specify your own index file name? something like ```go func FsFile(c Context, file string, filesystem fs.FS, indexFile string) error { f, err := filesystem.Open(file) if err !=...
contect.FileFs does not allow you to specify index page (line 36) to use when file points to directory and as I understand this is what you seek https://github.com/labstack/echo/blob/5ac2f11f21b7884903db6126630e6786c8c22661/context_fs.go#L23-L37
to be honest. I do not get why exposing that function `func fsFile(c Context, file string, filesystem fs.FS) error {` would be useful if you still need to pass in...
1. and `filename` is not static actually, as your current example is? because if it is you could do ```go indexFile := "index.html" indexFs := os.DirFS("main/website/") indexHandler := echo.StaticFileHandler(indexFile, indexFs)...