(ctx context.Context)
| 38 | } |
| 39 | |
| 40 | func 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 | |
| 50 | func WithResponseHeadersHolder(ctx context.Context) context.Context { |
| 51 | if ctx == nil { |
no outgoing calls
no test coverage detected