web

package
v0.0.0-...-7e01349 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 14 Imported by: 0

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

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

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

SSEEnd 发送 SSE 连接结束消息

func (*WebAddon) SSEMessage

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

SSEMessage 发送 SSE 消息

func (*WebAddon) SSEStart

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

SSEStart 发送 SSE 连接建立消息

func (*WebAddon) ServerDisconnected

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

func (*WebAddon) WebSocketEnd

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

WebSocketEnd 发送 WebSocket 连接结束消息

func (*WebAddon) WebSocketMessage

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

WebSocketMessage 发送 WebSocket 消息

func (*WebAddon) WebSocketStart

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