(r *kite.Request)
| 156 | } |
| 157 | |
| 158 | func (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). |
| 172 | func (p *Proxy) handleProxy(session sockjs.Session, req *http.Request) { |
nothing calls this directly
no test coverage detected