Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config represent a mime config. Map from extension to mime-type. Note, this should be safe with concurrent read access, as this is not modified concurrently.
type Mime ¶
type Mime struct { Next httpserver.Handler Configs Config SetQuerys SetQuery SetHeaders SetHeader }
Mime sets Content-Type header of requests based on configurations.
type ParameterValue ¶ added in v1.0.0
type SetHeader ¶ added in v1.0.0
type SetHeader map[string]*ParameterValue
type SetQuery ¶ added in v1.0.0
type SetQuery map[string]*ParameterValue
Click to show internal directories.
Click to hide internal directories.