Documentation ¶
Index ¶
- type PathRewrite
- func (self *PathRewrite) Action(_ http.ResponseWriter, req *http.Request) (bool, error)
- func (self *PathRewrite) GetName() string
- func (v PathRewrite) MarshalEasyJSON(w *jwriter.Writer)
- func (v PathRewrite) MarshalJSON() ([]byte, error)
- func (v *PathRewrite) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *PathRewrite) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PathRewrite ¶
type PathRewrite struct { Complete map[string]string `json:"complete,omitempty"` Prefix map[string]string `json:"prefix,omitempty"` Replace map[string]string `json:"replace,omitempty"` Suffix map[string]string `json:"suffix,omitempty"` }
path rewrite
func (*PathRewrite) Action ¶
func (self *PathRewrite) Action(_ http.ResponseWriter, req *http.Request) (bool, error)
中间件行为
func (*PathRewrite) GetName ¶
func (self *PathRewrite) GetName() string
func (PathRewrite) MarshalEasyJSON ¶
func (v PathRewrite) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (PathRewrite) MarshalJSON ¶
func (v PathRewrite) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*PathRewrite) UnmarshalEasyJSON ¶
func (v *PathRewrite) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PathRewrite) UnmarshalJSON ¶
func (v *PathRewrite) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
Click to show internal directories.
Click to hide internal directories.