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

Method HttpRequestChunk

go/copilot_request_handler.go:632–638  ·  view source on GitHub ↗
(params *rpc.LlmInferenceHTTPRequestChunkRequest)

Source from the content-addressed store, hash-verified

630}
631
632func (a *copilotRequestAdapter) HttpRequestChunk(params *rpc.LlmInferenceHTTPRequestChunkRequest) (*rpc.LlmInferenceHTTPRequestChunkResult, error) {
633 // May arrive before the matching start frame (frames are dispatched on
634 // separate goroutines); get-or-create so the body is buffered, never lost.
635 exchange := a.getOrCreateExchange(params.RequestID)
636 a.routeChunk(exchange, params)
637 return &rpc.LlmInferenceHTTPRequestChunkResult{}, nil
638}
639
640func (a *copilotRequestAdapter) routeChunk(exchange *pendingExchange, params *rpc.LlmInferenceHTTPRequestChunkRequest) {
641 if params.Cancel != nil && *params.Cancel {

Callers

nothing calls this directly

Calls 2

getOrCreateExchangeMethod · 0.95
routeChunkMethod · 0.95

Tested by

no test coverage detected