View definition

(*RequestCtx).SendFile

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

Description

SendFile sends local file contents from the given path as response body.

This is a shortcut to ServeFile(ctx, path).

SendFile logs all the errors via ctx.Logger.

See also ServeFile, FSHandler and FS.

SendFile is referenced in 2 repositories

github.com/valyala/fasthttp github.com/kataras/iris