📚Clarify Static struct documentation

pull/593/head
Roger Guldbrandsen 2020-07-13 00:41:19 +09:00
parent 070cbb0963
commit 34f8958de0
No known key found for this signature in database
GPG Key ID: 837452F60E594366
1 changed files with 6 additions and 6 deletions

12
app.go
View File

@ -189,22 +189,22 @@ type Settings struct {
// RedirectFixedPath bool
}
// Static struct
// Static defines configuration options when defining static assets.
type Static struct {
// This works differently than the github.com/gofiber/compression middleware
// The server tries minimizing CPU usage by caching compressed files.
// When set to true, the server tries minimizing CPU usage by caching compressed files.
// This works differently than the github.com/gofiber/compression middleware.
// Optional. Default value false
Compress bool
// Enables byte range requests if set to true.
// When set to true, enables byte range requests.
// Optional. Default value false
ByteRange bool
// Enable directory browsing.
// When set to true, enables directory browsing.
// Optional. Default value false.
Browse bool
// Index file for serving a directory.
// The name of the index file for serving a directory.
// Optional. Default value "index.html".
Index string
}