MCPcopy Create free account
hub / github.com/EpochCloud/quick / getDomain

Function getDomain

engine/engine.go:66–74  ·  view source on GitHub ↗
(domain string, r *http.Request)

Source from the content-addressed store, hash-verified

64}
65
66func getDomain(domain string, r *http.Request) string {
67 if scheme != string(domain[7]) {
68 domain = fmt.Sprintf("%s%s%s", scheme, domain, r.URL.Path)
69 config.Log.Debug("domian is %s", domain)
70 } else {
71 domain = fmt.Sprintf("%s%s", domain, r.URL.Path)
72 }
73 return domain
74}
75
76func degradation(p string) {
77 config.Srv.Service.Delete(p)

Callers 1

EngineFunction · 0.85

Calls 1

DebugMethod · 0.80

Tested by

no test coverage detected