Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Directory string `type:"arg" help:"[directory] from which files will be served"`
Auth string `help:"Enable HTTP basic auth with the chosen username and password (must be in the form 'user:pass')"`
LiveReload bool `help:"Enable LiveReload, a websocket server which triggers browser refresh after each file change"`
PushState bool `` /* 172-byte string literal not displayed */
NoIndex bool `help:"Disable automatic loading of index.html"`
NoSlash bool `help:"Disable automatic slash insertion when loading an index.html or directory"`
NoList bool `help:"Disable directory listing"`
NoArchive bool `` /* 130-byte string literal not displayed */
NoCache bool `help:"Disable cache (file modified time is always now)"`
Quiet bool `help:"Disable all output"`
TimeFmt string `help:"Set timestamp output format"`
Fallback string `help:"Requests that yeild a 404, will instead proxy through to the provided path (swaps in the appropriate Host header)"`
Realm string `help:"Set the realm for the authentication response"`
}
Config is a handler configuration
Click to show internal directories.
Click to hide internal directories.