replacer

package
v0.0.0-...-80b7e4b Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcquireBuffer

func AcquireBuffer() *bytebufferpool.ByteBuffer

func ReleaseBuffer

func ReleaseBuffer(buffer *bytebufferpool.ByteBuffer)

Types

type ReplaceContext

type ReplaceContext struct {
	RequestCtx *fasthttp.RequestCtx
	Method     []byte
	OriginHost string
	Host       string
	Path       string
}

func (*ReplaceContext) Reset

func (c *ReplaceContext) Reset()

type Replacer

type Replacer struct {
	ProxyBaseDomain        string
	ProxyStaticDomain      string
	FilterFeed             bool
	AddUselessProxyMessage bool
	// contains filtered or unexported fields
}

func (*Replacer) DoReplaceRequest

func (r *Replacer) DoReplaceRequest(req *fasthttp.Request, ctx *ReplaceContext)

func (*Replacer) DoReplaceResponse

Directories

Path Synopsis
x

Jump to

Keyboard shortcuts

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