Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CorsRule ¶
type CorsRule struct { Conf *cors.Config Path string }
CorsRule stores the parsed rules
type Middleware ¶
type Middleware struct {
Rules []*CorsRule `json:"rules,omitempty"`
}
Middleware implements an HTTP handler that writes directs the requests made with an upper case prefix to a lower case version
func (Middleware) CaddyModule ¶
func (Middleware) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (Middleware) ServeHTTP ¶
func (m Middleware) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error
ServeHTTP implements caddyhttp.MiddlewareHandler.
func (*Middleware) UnmarshalCaddyfile ¶
func (m *Middleware) UnmarshalCaddyfile(c *caddyfile.Dispenser) error
UnmarshalCaddyfile implements caddyfile.Unmarshaler.
Click to show internal directories.
Click to hide internal directories.