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

Function getDebugSession

packages/insomnia/src/konnect/debug-session-api.ts:200–203  ·  view source on GitHub ↗
(ctx: DebugSessionApiContext, sessionId: string)

Source from the content-addressed store, hash-verified

198}
199
200export async function getDebugSession(ctx: DebugSessionApiContext, sessionId: string): Promise<DebugSession> {
201 const body = await request<Raw>(ctx, 'GET', `${sessionsPath(ctx)}/${sessionId}`, { timeout: POLL_TIMEOUT_MS });
202 return normalizeSession(body);
203}
204
205export async function stopDebugSession(ctx: DebugSessionApiContext, sessionId: string): Promise<void> {
206 await request(ctx, 'POST', `${sessionsPath(ctx)}/${sessionId}/stop`);

Callers 1

debugSessionQueryOptionsFunction · 0.90

Calls 2

sessionsPathFunction · 0.85
normalizeSessionFunction · 0.85

Tested by

no test coverage detected