Versions in this module Expand all Collapse all v0 v0.1.1 Dec 7, 2014 v0.1.0 Dec 7, 2014 Changes in this version + const Type + func CliFlags() []cli.Flag + func FromCli(c *cli.Context) (plugin.Middleware, error) + func FromOther(rw Rewrite) (plugin.Middleware, error) + func GetSpec() *plugin.MiddlewareSpec + type Rewrite struct + Redirect bool + Regexp string + Replacement string + RewriteBody bool + func NewRewrite(regex, replacement string, rewriteBody, redirect bool) (*Rewrite, error) + func (rw *Rewrite) NewMiddleware() (middleware.Middleware, error) + func (rw *Rewrite) String() string + type RewriteInstance struct + func NewRewriteInstance(spec *Rewrite) (*RewriteInstance, error) + func (rw *RewriteInstance) ProcessRequest(r request.Request) (*http.Response, error) + func (rw *RewriteInstance) ProcessResponse(r request.Request, a request.Attempt)