README ¶ redirecthttps Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func New(config Config) middleware.Middleware type Config type Mode Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(config Config) middleware.Middleware New creates new redirect https middleware Types ¶ type Config ¶ type Config struct { Skipper middleware.Skipper Mode Mode } Config is redirect https middleware config type Mode ¶ type Mode int Mode is the redirect https mode const ( // OnlyConnectionState check only connection state from r.TLS OnlyConnectionState Mode = iota // OnlyProxy check only X-Forwarded-Proto in request header OnlyProxy // All check both X-Forwarded-Proto and Request All ) Source Files ¶ View all Source files redirecthttps.go Click to show internal directories. Click to hide internal directories.