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 ¶
func (r *Replacer) DoReplaceResponse(res *fasthttp.Response, body *bytebufferpool.ByteBuffer, ctx *ReplaceContext) *bytebufferpool.ByteBuffer
Click to show internal directories.
Click to hide internal directories.