MCPcopy Index your code
hub / github.com/github/copilot-sdk / NewCopilotWebSocketForwarder

Function NewCopilotWebSocketForwarder

go/copilot_request_handler.go:397–399  ·  view source on GitHub ↗

NewCopilotWebSocketForwarder creates a forwarding handler targeting url with the given handshake headers.

(url string, headers http.Header)

Source from the content-addressed store, hash-verified

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

Callers 1

handleWebSocketMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…