NewCopilotWebSocketForwarder creates a forwarding handler targeting url with the given handshake headers.
(url string, headers http.Header)
| 395 | // NewCopilotWebSocketForwarder creates a forwarding handler targeting |
| 396 | // url with the given handshake headers. |
| 397 | func NewCopilotWebSocketForwarder(url string, headers http.Header) *CopilotWebSocketForwarder { |
| 398 | return &CopilotWebSocketForwarder{URL: url, Headers: headers, done: make(chan struct{})} |
| 399 | } |
| 400 | |
| 401 | func (f *CopilotWebSocketForwarder) Open(ctx context.Context, resp WebSocketResponseWriter) error { |
| 402 | f.resp = resp |
no outgoing calls
no test coverage detected
searching dependent graphs…