Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.30
    Preparing search index...
    • Parse a Response body into a JsonRpcResponse envelope. Branches on content-type: text/event-stream (SSE-framed) vs. plain JSON.

      Parameters

      • response: {
        ย ย ย ย text(): Promise<string>;
        ย ย ย ย json(): Promise<unknown>;
        ย ย ย ย headers?: { get?: (name: string) => string };
        }

      Returns Promise<JsonRpcResponse>