Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rule ¶
type Rule struct {
// Scheme modification
Scheme string `cfg:"scheme"`
// Host modification
Host string `cfg:"host"`
// Path modifications
Path string `cfg:"path"`
PathPrefix string `cfg:"path_prefix"`
PathSuffix string `cfg:"path_suffix"`
StripPrefix string `cfg:"strip_prefix"`
// Path replacement with regex
PathReplace string `cfg:"path_replace"`
PathReplaceWith string `cfg:"path_replace_with"`
// Query parameter modifications
AddQuery map[string]string `cfg:"add_query"`
RemoveQuery []string `cfg:"remove_query"`
SetQuery map[string]string `cfg:"set_query"`
// Fragment modification
Fragment string `cfg:"fragment"`
// Port modification
Port string `cfg:"port"`
// contains filtered or unexported fields
}
type SchemeModify ¶
Click to show internal directories.
Click to hide internal directories.