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

Function cloneHeader

go/copilot_request_handler.go:246–252  ·  view source on GitHub ↗
(h http.Header)

Source from the content-addressed store, hash-verified

244}
245
246func cloneHeader(h http.Header) http.Header {
247 out := http.Header{}
248 for k, vs := range h {
249 out[k] = append([]string(nil), vs...)
250 }
251 return out
252}
253
254func (h *CopilotRequestHandler) handleWebSocket(rctx *CopilotRequestContext, sink *responseSink) error {
255 var handler CopilotWebSocketHandler

Callers 1

streamResponseToSinkFunction · 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…