Documentation
¶
Overview ¶
Package traefik_remove_query_parameters_by_regex by Thijmen Stavenuiter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidModificationType = errors.New("invalid modification type, expected deleteexcept") ErrNoConfigurationSet = errors.New( "either AllowedValuesRegex, ExceptURIRegex, or RedirectParams must be set", ) ErrInvalidStatusCode = errors.New("redirectParam statusCode must be 301 or 302") )
Functions ¶
Types ¶
type Config ¶
type Config struct {
RedirectParams []RedirectParam `json:"redirectParams"`
AllowedValuesRegex string `json:"allowedValuesRegex"`
ExceptURIRegex string `json:"exceptUriRegex"`
Type modificationType `json:"type"`
AddOriginalHostnameHeader bool `json:"addOriginalHostnameHeader"`
}
Config is the configuration for this plugin.
func CreateConfig ¶
func CreateConfig() *Config
CreateConfig creates a new configuration for this plugin.
type QueryParameterRemover ¶
type QueryParameterRemover struct {
// contains filtered or unexported fields
}
QueryParameterRemover represents the basic properties of this plugin.
func (*QueryParameterRemover) ServeHTTP ¶
func (queryParameterRemoverConfig *QueryParameterRemover) ServeHTTP( rw http.ResponseWriter, req *http.Request, )
type RedirectParam ¶ added in v1.1.0
RedirectParam represents a query parameter and its redirect status code.
Click to show internal directories.
Click to hide internal directories.