You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Transfers the file from the given path. Sets the [Content-Type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type) response HTTP header field based on the **filenames** extension.
1712
+
Transfers the file from the given path. Sets the [Content-Type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type) response HTTP header field based on the **file** extension or format.
1713
1713
1714
1714
```go title="Config" title="Config"
1715
1715
// SendFile defines configuration options when to transfer file with SendFile.
@@ -1725,29 +1725,29 @@ type SendFile struct {
1725
1725
// You have to set Content-Encoding header to compress the file.
1726
1726
// Available compression methods are gzip, br, and zstd.
1727
1727
//
1728
-
// Optional. Default value false
1728
+
// Optional. Default: false
1729
1729
Compress bool `json:"compress"`
1730
1730
1731
1731
// When set to true, enables byte range requests.
1732
1732
//
1733
-
// Optional. Default value false
1733
+
// Optional. Default: false
1734
1734
ByteRange bool `json:"byte_range"`
1735
1735
1736
1736
// When set to true, enables direct download.
1737
1737
//
1738
-
// Optional. Default: false.
1738
+
// Optional. Default: false
1739
1739
Download bool `json:"download"`
1740
1740
1741
1741
// Expiration duration for inactive file handlers.
0 commit comments