Documentation
¶
Index ¶
Constants ¶
View Source
const Type = "rewrite"
Variables ¶
This section is empty.
Functions ¶
func GetSpec ¶
func GetSpec() *plugin.MiddlewareSpec
Types ¶
type RewriteInstance ¶
type RewriteInstance struct {
// contains filtered or unexported fields
}
func NewRewriteInstance ¶
func NewRewriteInstance(regex, replacement string) (*RewriteInstance, error)
func (*RewriteInstance) NewMiddleware ¶
func (r *RewriteInstance) NewMiddleware() (middleware.Middleware, error)
func (*RewriteInstance) ProcessRequest ¶
func (rewrite *RewriteInstance) ProcessRequest(r Request) (*http.Response, error)
func (*RewriteInstance) ProcessResponse ¶
func (*RewriteInstance) ProcessResponse(r Request, a Attempt)
Click to show internal directories.
Click to hide internal directories.