Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NonWWW2WWWGas ¶
func NonWWW2WWWGas(nw2wgc NonWWW2WWWGasConfig) air.Gas
NonWWW2WWWGas returns an `air.Gas` that is used to redirect non-www requests to www.
func OneHostGas ¶
func OneHostGas(oagc OneHostGasConfig) air.Gas
OneHostGas returns an `air.Gas` that is used to ensure that there is only one host.
func WWW2NonWWWGas ¶
func WWW2NonWWWGas(w2nwgc WWW2NonWWWGasConfig) air.Gas
WWW2NonWWWGas returns an `air.Gas` that is used to redirect www requests to non-www.
Types ¶
type NonWWW2WWWGasConfig ¶
type NonWWW2WWWGasConfig struct { HTTPSEnforced bool Skippable func(*air.Request, *air.Response) bool }
NonWWW2WWWGasConfig is a set of configurations for the `NonWWW2WWWGas`.
Click to show internal directories.
Click to hide internal directories.