File writes the specified file into the body stream in an efficient way.
(filepath string)
| 1278 | |
| 1279 | // File writes the specified file into the body stream in an efficient way. |
| 1280 | func (c *Context) File(filepath string) { |
| 1281 | http.ServeFile(c.Writer, c.Request, filepath) |
| 1282 | } |
| 1283 | |
| 1284 | // FileFromFS writes the specified file from http.FileSystem into the body stream in an efficient way. |
| 1285 | func (c *Context) FileFromFS(filepath string, fs http.FileSystem) { |
no outgoing calls