Source symbols: cognee-frontend/src/services/http/client.ts
Deterministic, value-free symbol metadata extracted from public source. Implementations and literal values are not copied into this page.
- Revision: main@90b4acaac937dc1c0aeffaead8b707c896ebf3db · 2026-07-22T09:03:55Z
- Declarations: 46
- Referenced calls: 40
Declared symbols
HttpRequestOpts— exported type at line 5RequestContext— exported type at line 12RequestInterceptor— exported type at line 19ResponseInterceptor— exported type at line 20ErrorInterceptor— exported type at line 24HttpLogEvent— exported type at line 26HttpLogger— exported type at line 35; referencesSetHttpClient— exported type at line 37; referencesSetDEFAULT_RETRY_ON— const at line 41; referencesSetSAFE_RETRY_ON— const at line 42; referencesSetIDEMPOTENT_METHODS— const at line 43; referencesSetDEFAULT_TIMEOUTS— const at line 45needsJsonSerialization— function at line 56retryDelayMs— function at line 68; referencesparseFloat,isNaN,parse,max,now,pow,randomseconds— const at line 70; referencesparseFloat,isNaN,parse,max,now,pow,random,isArray,fromEntriesdate— const at line 72; referencesparse,isNaN,max,now,pow,random,isArray,fromEntriesnow— const at line 81; referencesisArray,fromEntriesheadersToRecord— function at line 84; referencesisArray,fromEntriesout— const at line 87makeRegistry— exported function at line 95; referencesset,delete,clear,valuesmap— const at line 96; referencesset,delete,clear,valuesseq— let at line 97; referencesset,delete,clear,valuesparseJson— function at line 109; referencesjson,validatedata— const at line 110; referencesjson,validate,toUpperCase,has,needsJsonSerialization,stringify,headersToRecord,for,values,interceptor,now,DOMException,AbortController,setTimeout,abort,any,fetch,includes,retryDelayMs,getcreateHttpClient— exported function at line 116; referencestoUpperCase,has,needsJsonSerialization,stringify,headersToRecord,for,values,interceptor,now,DOMException,AbortController,setTimeout,abort,any,fetch,includes,retryDelayMs,get,Promise,toHttpErrorreqRegistry— const at line 117resRegistry— const at line 118errRegistry— const at line 119activeLogger— let at line 121emitLog— function at line 123httpRequest— function at line 127normalizedMethod— const at line 133; referencestoUpperCase,hasserializedBody— const at line 143; referencesneedsJsonSerialization,stringifycontentTypeHeader— const at line 147; referencesneedsJsonSerializationctx— let at line 151; referencesheadersToRecordattempt— let at line 162; referencesnow,DOMException,AbortController,setTimeout,abort,any,fetch,includes,retryDelayMs,get,Promise,toHttpError,for,values,interceptor,emitLog,normalizeError,clearTimeoutstartTime— const at line 163; referencesnow,DOMException,AbortController,setTimeout,abort,any,fetch,includes,retryDelayMs,get,Promise,toHttpError,for,values,interceptor,emitLog,normalizeError,clearTimeouttimeoutController— const at line 171; referencesAbortController,setTimeout,abort,DOMException,any,fetch,includes,retryDelayMs,get,Promise,toHttpError,for,values,interceptor,emitLog,now,normalizeError,clearTimeouttimer— const at line 172; referencessetTimeout,abort,DOMException,any,fetch,includes,retryDelayMs,get,Promise,toHttpError,for,values,interceptor,emitLog,now,normalizeError,clearTimeoutsignal— const at line 177; referencesany,fetch,includes,retryDelayMs,get,Promise,setTimeout,toHttpError,for,values,interceptor,emitLog,now,normalizeError,clearTimeoutres— let at line 183; referencesfetchdelay— const at line 200; referencesretryDelayMs,get,Promise,setTimeout,toHttpError,for,values,interceptorisNetworkDrop— const at line 215; referencesretryDelayMs,Promise,setTimeoutdelay— const at line 217; referencesretryDelayMs,Promise,setTimeout,emitLog,nowresult— const at line 225; referencesinterceptor,emitLog,nowhttp— exported const at line 294; referencescreateHttpClient
Imported modules
./errors
File-level call references
Set— line 43parseFloat— line 70isNaN— line 71parse— line 72max— line 73now— line 73pow— line 77random— line 77isArray— line 91fromEntries— line 91set— line 100delete— line 101clear— line 102values— line 103json— line 110validate— line 111toUpperCase— line 133has— line 137needsJsonSerialization— line 144stringify— line 144headersToRecord— line 154for— line 158interceptor— line 159DOMException— line 169AbortController— line 171setTimeout— line 172abort— line 173any— line 179fetch— line 183includes— line 199retryDelayMs— line 200get— line 200Promise— line 202toHttpError— line 205emitLog— line 212normalizeError— line 232clearTimeout— line 234HttpError— line 241httpRequest— line 246createHttpClient— line 294
Source: cognee-frontend/src/services/http/client.ts