MCPcopy
hub / github.com/ltaoo/wx_channels_download / Context

Interface Context

internal/interceptor/proxy/interface.go:34–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34type Context interface {
35 Req() *ContextReq
36 Res() *ContextRes
37 Mock(status int, headers map[string]string, body string)
38 GetResponseHeader(key string) string
39 SetResponseHeader(key, val string)
40 SetResponseBody(body string)
41 GetResponseBody() ([]byte, error)
42 SetStatusCode(code int)
43}
44
45type contextImpl struct {
46 Req *http.Request

Callers 35

mockChannelStaticAssetFunction · 0.65
ReqMethod · 0.65
ResMethod · 0.65
mockChannelStaticAssetFunction · 0.65
MockMethod · 0.65

Implementers 5

staticAssetContextinternal/interceptor/assets_test.go
channelPluginContextinternal/interceptor/plugin_test.go
sunnyBridgeContextinternal/interceptor/proxy/sunny.go
EchoContextinternal/interceptor/proxy/echo.go
officialAccountPluginContextinternal/officialaccount/plugin_test.g

Calls

no outgoing calls

Tested by

no test coverage detected