Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Root string
Functions ¶
Types ¶
type StaticOptions ¶
type StaticOptions struct {
// Prefix is the optional prefix used to serve the static directory content
Prefix string
// SkipLogging will disable [Static] log messages when a static file is served.
SkipLogging bool
// IndexFile defines which file to serve as index if it exists.
IndexFile string
// Expires defines which user-defined function to use for producing a HTTP Expires Header
// https://developers.google.com/speed/docs/insights/LeverageBrowserCaching
AddHeaders func(ctx *macaron.Context)
// FileSystem is the interface for supporting any implmentation of file system.
FileSystem http.FileSystem
}
StaticOptions is a struct for specifying configuration options for the macaron.Static middleware.
Click to show internal directories.
Click to hide internal directories.