rewrite

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rewriter

type Rewriter struct {
	// contains filtered or unexported fields
}

func NewRewriter

func NewRewriter(cfg *config.Rewrite) *Rewriter

func (*Rewriter) Register

func (r *Rewriter) Register(proxy *goproxy.ProxyHttpServer)

func (*Rewriter) Rewrite

func (r *Rewriter) Rewrite(req *http.Request, ctx *goproxy.ProxyCtx) (*http.Request, *http.Response)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL