MCPcopy Create free account
hub / github.com/github/copilot-sdk / rpcAPI

Method rpcAPI

go/copilot_request_handler.go:723–729  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

721}
722
723func (s *responseSink) rpcAPI() (*rpc.ServerLlmInferenceAPI, error) {
724 r := s.adapter.getRPC()
725 if r == nil {
726 return nil, fmt.Errorf("CopilotRequestHandler response sink used after RPC connection closed")
727 }
728 return r, nil
729}
730
731func (s *responseSink) start(status int, statusTxt string, headers http.Header) error {
732 s.exchange.mu.Lock()

Callers 4

startMethod · 0.95
writeRawMethod · 0.95
endMethod · 0.95
sinkErrorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected