MCPcopy Create free account
hub / github.com/ericls/imgdd / GetRequest

Function GetRequest

httpserver/common_middleware.go:42–48  ·  view source on GitHub ↗
(c context.Context)

Source from the content-addressed store, hash-verified

40}
41
42func 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
50func IsSecure(r *http.Request) bool {
51 if r == nil {

Callers 4

AuthenticateContextMethod · 0.85
LogoutContextMethod · 0.85
IsHttpsFunction · 0.85
GetBaseURLFunction · 0.85

Calls 1

ValueMethod · 0.80

Tested by

no test coverage detected