Inline sends a response as inline, opening the file in the browser. if file not exists, response 404 for issue #39
(file, name string)
| 454 | // if file not exists, response 404 |
| 455 | // for issue #39 |
| 456 | func (ctx *HttpContext) Inline(file, name string) (err error) { |
| 457 | return ctx.contentDisposition(file, name, "inline") |
| 458 | } |
| 459 | |
| 460 | // contentDisposition set Content-disposition and response file |
| 461 | func (ctx *HttpContext) contentDisposition(file, name, dispositionType string) (err error) { |
nothing calls this directly
no test coverage detected