Documentation ¶
Index ¶
- Constants
- Variables
- func RemoveHopByHopRequestHeaders(header http.Header)
- func RemoveWebsocketRequestHeaders(header http.Header)
- type HTTPDelegatedInvoker
- type HTTPDelegatedInvokerFunc
- type ImmutableHTTPInterceptor
- type ImmutableWebsocketInterceptor
- type MimtOption
- type MitmHandler
- type MutableHTTPInterceptor
- type MutableWebsocketInterceptor
- type ReqContext
- type ReqContextKey
- type WSDirection
- type WebsocketDelegatedInvoker
- type WebsocketDelegatedInvokerFunc
Constants ¶
View Source
const ( HttpHeaderContentType = "Content-Type" HttpHeaderConnection = "Connection" HttpHeaderKeepAlive = "Keep-Alive" HttpHeaderProxyAuthenticate = "Proxy-Authenticate" HttpHeaderProxyAuthorization = "Proxy-Authorization" HttpHeaderProxyConnection = "Proxy-Connection" HttpHeaderProxyAgent = "Proxy-Agent" HttpHeaderTe = "Te" HttpHeaderTrailers = "Trailers" HttpHeaderTransferEncoding = "Transfer-Encoding" HttpHeaderUpgrade = "Upgrade" HttpHeaderSecWebsocketKey = "Sec-Websocket-Key" HttpHeaderSecWebsocketVersion = "Sec-Websocket-Version" HttpHeaderSecWebsocketExtensions = "Sec-Websocket-Extensions" )
Variables ¶
View Source
var ( ReqCtxKey = ReqContextKey{} EmptyReqCtx = ReqContext{} )
Functions ¶
Types ¶
type HTTPDelegatedInvoker ¶
type ImmutableWebsocketInterceptor ¶
type ImmutableWebsocketInterceptor func(WSDirection, *http.Request, int, []byte)
type MimtOption ¶
type MitmHandler ¶
type MitmHandler interface { SetMutableHTTPInterceptor(MutableHTTPInterceptor) SetImmutableHTTPInterceptor(ImmutableHTTPInterceptor) SetMutableWebsocketInterceptor(MutableWebsocketInterceptor) SetImmutableWebsocketInterceptor(ImmutableWebsocketInterceptor) HandleMIMT(context.Context, net.Conn) error CAPath() string }
func NewMitmHandler ¶
func NewMitmHandler(opt MimtOption) (MitmHandler, error)
type MutableHTTPInterceptor ¶
type MutableWebsocketInterceptor ¶
type MutableWebsocketInterceptor func(WSDirection, *http.Request, int, []byte, WebsocketDelegatedInvoker) error
type ReqContext ¶
type ReqContextKey ¶
type ReqContextKey struct{}
Click to show internal directories.
Click to hide internal directories.