MCPcopy Create free account
hub / github.com/compozy/agh / streamHTTPClient

Method streamHTTPClient

internal/cli/client.go:5603–5611  ·  view source on GitHub ↗

streamHTTPClient preserves long-lived streams when no dedicated client has been configured.

()

Source from the content-addressed store, hash-verified

5601
5602// streamHTTPClient preserves long-lived streams when no dedicated client has been configured.
5603func (c *unixSocketClient) streamHTTPClient() *http.Client {
5604 if c != nil && c.streamClient != nil {
5605 return c.streamClient
5606 }
5607 if c == nil {
5608 return nil
5609 }
5610 return c.httpClient
5611}
5612
5613func setAgentIdentityHeaders(req *http.Request, credentials agentidentity.Credentials) {
5614 if req == nil {

Callers 2

doSSEMethod · 0.95
doSessionPromptMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected