MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / WithResponseStatusHolder

Function WithResponseStatusHolder

internal/logging/requestmeta.go:40–48  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

38}
39
40func WithResponseStatusHolder(ctx context.Context) context.Context {
41 if ctx == nil {
42 ctx = context.Background()
43 }
44 if holder, ok := ctx.Value(responseStatusKey{}).(*responseStatusHolder); ok && holder != nil {
45 return ctx
46 }
47 return context.WithValue(ctx, responseStatusKey{}, &responseStatusHolder{})
48}
49
50func WithResponseHeadersHolder(ctx context.Context) context.Context {
51 if ctx == nil {

Callers 1

GetContextWithCancelMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected