proxyaddons

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MutableHTTPInterceptor proxy.MutableHTTPInterceptor
	MutableWSInterceptor   proxy.MutableWebsocketInterceptor
)

Functions

func Use

func Use(addons ...ProxyAddons)

Types

type Context

type Context struct {
	*proxy.Flow
	// contains filtered or unexported fields
}

func (*Context) Abort

func (c *Context) Abort()

Abort abort the addons chain

func (*Context) Next

func (c *Context) Next()

func (*Context) Reject

func (c *Context) Reject(err error)

Reject abort the addons chain and reject the request/response/message with error

type MessageHandler

type MessageHandler interface{ Message(*Context) }

type ProxyAddons

type ProxyAddons interface{}

type RequestHandler

type RequestHandler interface{ Request(*Context) }

type ResponseHandler

type ResponseHandler interface{ Response(*Context) }

Jump to

Keyboard shortcuts

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