MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / handle401

Function handle401

src/services/utils/http.ts:73–75  ·  view source on GitHub ↗
(resp: Response)

Source from the content-addressed store, hash-verified

71}
72
73function handle401(resp: Response): void {
74 if (resp.status === 401 && _on401) _on401()
75}
76
77export async function get<T>(path: string, signal?: AbortSignal): Promise<T> {
78 const resp = await fetch(`${_baseUrl}${path}`, {

Callers 5

getFunction · 0.85
postFunction · 0.85
delFunction · 0.85
putFunction · 0.85
patchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected