MCPcopy Create free account
hub / github.com/koding/kite / director

Method director

reverseproxy/reverseproxy.go:181–191  ·  view source on GitHub ↗
(req *http.Request)

Source from the content-addressed store, hash-verified

179}
180
181func (p *Proxy) director(req *http.Request) {
182 u := p.backend(req)
183 if u == nil {
184 return
185 }
186
187 // we don't use https explicitly, ssl termination is done here
188 req.URL.Scheme = "http"
189 req.URL.Host = u.Host
190 req.URL.Path = u.Path
191}
192
193// ListenAndServe listens on the TCP network address addr and then calls Serve
194// with handler to handle requests on incoming connections.

Callers

nothing calls this directly

Calls 1

backendMethod · 0.95

Tested by

no test coverage detected