web

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebAddon

type WebAddon struct {
	proxy.BaseAddon
	// contains filtered or unexported fields
}

func NewWebAddon

func NewWebAddon(addr string) *WebAddon

func (*WebAddon) Request

func (web *WebAddon) Request(f *proxy.Flow)

func (*WebAddon) RequestError added in v1.8.9

func (web *WebAddon) RequestError(f *proxy.Flow, err error)

func (*WebAddon) Requestheaders

func (web *WebAddon) Requestheaders(f *proxy.Flow)

func (*WebAddon) Response

func (web *WebAddon) Response(f *proxy.Flow)

func (*WebAddon) Responseheaders

func (web *WebAddon) Responseheaders(f *proxy.Flow)

func (*WebAddon) SSEEnd added in v1.8.10

func (web *WebAddon) SSEEnd(f *proxy.Flow)

SSEEnd 发送 SSE 连接结束消息

func (*WebAddon) SSEMessage added in v1.8.10

func (web *WebAddon) SSEMessage(f *proxy.Flow)

SSEMessage 发送 SSE 消息

func (*WebAddon) SSEStart added in v1.8.10

func (web *WebAddon) SSEStart(f *proxy.Flow)

SSEStart 发送 SSE 连接建立消息

func (*WebAddon) ServerDisconnected

func (web *WebAddon) ServerDisconnected(connCtx *proxy.ConnContext)

func (*WebAddon) WebSocketEnd added in v1.8.9

func (web *WebAddon) WebSocketEnd(f *proxy.Flow)

WebSocketEnd 发送 WebSocket 连接结束消息

func (*WebAddon) WebSocketMessage added in v1.8.9

func (web *WebAddon) WebSocketMessage(f *proxy.Flow)

WebSocketMessage 发送 WebSocket 消息

func (*WebAddon) WebSocketStart added in v1.8.9

func (web *WebAddon) WebSocketStart(f *proxy.Flow)

WebSocketStart 发送 WebSocket 连接建立消息

Jump to

Keyboard shortcuts

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