MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / streamErrorResult

Function streamErrorResult

sdk/cliproxy/auth/conductor.go:1699–1707  ·  view source on GitHub ↗
(headers http.Header, err error)

Source from the content-addressed store, hash-verified

1697}
1698
1699func streamErrorResult(headers http.Header, err error) *cliproxyexecutor.StreamResult {
1700 ch := make(chan cliproxyexecutor.StreamChunk, 1)
1701 ch <- cliproxyexecutor.StreamChunk{Err: err}
1702 close(ch)
1703 return &cliproxyexecutor.StreamResult{
1704 Headers: cloneHTTPHeader(headers),
1705 Chunks: ch,
1706 }
1707}
1708
1709func readStreamBootstrap(ctx context.Context, ch <-chan cliproxyexecutor.StreamChunk) ([]cliproxyexecutor.StreamChunk, bool, error) {
1710 if ch == nil {

Callers 1

ExecuteStreamMethod · 0.85

Calls 1

cloneHTTPHeaderFunction · 0.70

Tested by

no test coverage detected