MCPcopy Create free account
hub / github.com/zalando/skipper / schemeFromRequest

Function schemeFromRequest

proxy/proxy.go:603–608  ·  view source on GitHub ↗
(r *http.Request)

Source from the content-addressed store, hash-verified

601}
602
603func schemeFromRequest(r *http.Request) string {
604 if r.TLS != nil {
605 return "https"
606 }
607 return "http"
608}
609
610func setRequestURLFromRequest(u *url.URL, r *http.Request) {
611 if u.Host == "" {

Callers 2

setRequestURLFromRequestFunction · 0.85
forwardToProxyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…