Documentation ¶
Overview ¶
Package plugin contains the Traefik plugin for adding headers based on the TLS information
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Headers ConfigHeaders `json:"headers,omitempty"`
}
Config the plugin configuration.
func CreateConfig ¶
func CreateConfig() *Config
CreateConfig creates the default plugin configuration.
type ConfigHeaders ¶
type ConfigHeaders struct {
Cipher string `json:"cipher,omitempty"`
}
ConfigHeaders defines the headers to use for the different values.
type TLSHeadersPlugin ¶
type TLSHeadersPlugin struct {
// contains filtered or unexported fields
}
TLSHeadersPlugin is the main handler model for this Traefik plugin.
func (*TLSHeadersPlugin) ServeHTTP ¶
func (a *TLSHeadersPlugin) ServeHTTP(rw http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.