View definition

(*FS).NewRequestHandler

Defined in github.com/valyala/fasthttp/fs.go

Description

NewRequestHandler returns new request handler with the given FS settings.

The returned handler caches requested file handles for FS.CacheDuration. Make sure your program has enough 'max open files' limit aka 'ulimit -n' if FS.Root folder contains many files.

Do not create multiple request handlers from a single FS instance - just reuse a single request handler.

NewRequestHandler is referenced in 4 repositories

github.com/valyala/fasthttp github.com/go-gas/gas github.com/kataras/iris

...