MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / isSuperagentRequest

Function isSuperagentRequest

framework/utils/lib/utils.ts:100–102  ·  view source on GitHub ↗
(t: NodeJS.ReadableStream | superagent.Request)

Source from the content-addressed store, hash-verified

98}
99
100function isSuperagentRequest(t: NodeJS.ReadableStream | superagent.Request): t is superagent.Request {
101 return 'req' in t;
102}
103export function streamToBuffer(input: NodeJS.ReadableStream | superagent.Request, maxSize = 0): Promise<Buffer> {
104 let stream: NodeJS.ReadableStream;
105 if (isSuperagentRequest(input)) {

Callers 1

streamToBufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected