MCPcopy Create free account
hub / github.com/langgenius/dify / rawFetch

Function rawFetch

cli/src/http/client.ts:286–290  ·  view source on GitHub ↗
(path: string, callOpts?: RequestOptions)

Source from the content-addressed store, hash-verified

284 }
285
286 const rawFetch = (path: string, callOpts?: RequestOptions): Promise<Response> => {
287 const finalOpts: RequestOptions = { ...callOpts, method: callOpts?.method ?? 'GET' }
288 const built = buildRequest(state, path, finalOpts, false)
289 return execute(state, built.request, built.resolved, built.effectiveTimeoutMs, built.userSignal)
290 }
291
292 const streamFetch = (path: string, callOpts?: RequestOptions): Promise<Response> => {
293 // SSE bodies must not be aborted by a request-level timeout — `0` is the buildRequest

Callers

nothing calls this directly

Calls 2

buildRequestFunction · 0.85
executeFunction · 0.85

Tested by

no test coverage detected