(c context.Context)
| 40 | } |
| 41 | |
| 42 | func GetRequest(c context.Context) *http.Request { |
| 43 | v, ok := c.Value(request_context_key).(*http.Request) |
| 44 | if v == nil || !ok { |
| 45 | return nil |
| 46 | } |
| 47 | return v |
| 48 | } |
| 49 | |
| 50 | func IsSecure(r *http.Request) bool { |
| 51 | if r == nil { |
no test coverage detected