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

Function IsHttps

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

Source from the content-addressed store, hash-verified

62}
63
64func IsHttps(c context.Context) bool {
65 r := GetRequest(c)
66 return IsSecure(r)
67}
68
69func GetBaseURL(c context.Context) *url.URL {
70 r := GetRequest(c)

Callers

nothing calls this directly

Calls 2

GetRequestFunction · 0.85
IsSecureFunction · 0.85

Tested by

no test coverage detected