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

Function SetResponseStatus

internal/logging/requestmeta.go:60–69  ·  view source on GitHub ↗
(ctx context.Context, status int)

Source from the content-addressed store, hash-verified

58}
59
60func SetResponseStatus(ctx context.Context, status int) {
61 if ctx == nil || status <= 0 {
62 return
63 }
64 holder, ok := ctx.Value(responseStatusKey{}).(*responseStatusHolder)
65 if !ok || holder == nil {
66 return
67 }
68 holder.status.Store(int32(status))
69}
70
71func SetResponseHeaders(ctx context.Context, headers http.Header) {
72 if ctx == nil {

Callers 1

GetContextWithCancelMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected