Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cfg ¶
type Cfg struct { // Prefix HTTP Prefix string `mapstructure:"prefix"` // Dir contains name of directory to control access to. // Default - "." Root string `mapstructure:"root"` BytesRange bool `mapstructure:"bytes_range"` Compress bool `mapstructure:"compress"` CacheDuration int `mapstructure:"cache_duration"` MaxAge int `mapstructure:"max_age"` }
type Config ¶
type Config struct { // Address to serve Address string `mapstructure:"address"` // CalculateEtag can be true/false and used to calculate etag for the static CalculateEtag bool `mapstructure:"calculate_etag"` // Weak etag `W/` Weak bool `mapstructure:"weak"` // per-root configuration Configuration []*Cfg `mapstructure:"serve"` // StreamRequestBody ... StreamRequestBody bool `mapstructure:"stream_request_body"` }
type Configurer ¶
Click to show internal directories.
Click to hide internal directories.