MCPcopy Create free account
hub / github.com/Kong/insomnia / getDirectSession

Function getDirectSession

packages/insomnia/src/sync/git/http-client.ts:65–71  ·  view source on GitHub ↗
(electron: typeof Electron)

Source from the content-addressed store, hash-verified

63// — nothing else that might share that session.
64let directSession: Electron.Session | undefined;
65async function getDirectSession(electron: typeof Electron) {
66 if (!directSession) {
67 directSession = electron.session.fromPartition('git-sync-direct', { cache: false });
68 await directSession.setProxy({ mode: 'direct' });
69 }
70 return directSession;
71}
72
73async function shouldBypassProxy(): Promise<boolean> {
74 const settings = await services.settings.get();

Callers 1

requestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected