View definition

(*Response).SendFile

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

Description

SendFile registers file on the given path to be used as response body when Write is called.

Note that SendFile doesn't set Content-Type, so set it yourself with Header.SetContentType.

SendFile is referenced in 0 repositories