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

Method handleRegister

tunnelproxy/proxy.go:158–169  ·  view source on GitHub ↗
(r *kite.Request)

Source from the content-addressed store, hash-verified

156}
157
158func (p *Proxy) handleRegister(r *kite.Request) (interface{}, error) {
159 p.kites[r.Client.ID] = newPrivateKite(r.Client)
160
161 proxyURL := url.URL{
162 Scheme: "http",
163 Host: p.url.Host,
164 Path: "proxy",
165 RawQuery: "kiteID=" + r.Client.ID,
166 }
167
168 return proxyURL.String(), nil
169}
170
171// handleProxy is the client side of the Tunnel (on public network).
172func (p *Proxy) handleProxy(session sockjs.Session, req *http.Request) {

Callers

nothing calls this directly

Calls 2

newPrivateKiteFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected