Inline sends a response as inline, opening the file in the browser. Avoid using the leading `/` slash as most of the Go standard library fs.FS implementations require relative paths for file operations.
(file, name string)
| 712 | // Avoid using the leading `/` slash as most of the Go standard library fs.FS implementations require relative paths for |
| 713 | // file operations. |
| 714 | func (c *Context) Inline(file, name string) error { |
| 715 | return c.contentDisposition(file, name, "inline") |
| 716 | } |
| 717 | |
| 718 | var quoteEscaper = strings.NewReplacer("\\", "\\\\", `"`, "\\\"") |
| 719 |