streamHTTPClient preserves long-lived streams when no dedicated client has been configured.
()
| 5601 | |
| 5602 | // streamHTTPClient preserves long-lived streams when no dedicated client has been configured. |
| 5603 | func (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 | |
| 5613 | func setAgentIdentityHeaders(req *http.Request, credentials agentidentity.Credentials) { |
| 5614 | if req == nil { |
no outgoing calls
no test coverage detected