Rocky_Mountain_Vending/.pnpm-store/v10/files/4b/8eaad3e6aac13f74eaace4ea08ca77fd33d905a7c5ee7b27fce61b0cd3ab888df987b57407bddcb2cb882fad772e1d1672ec51fe0cb619d90f628f6faa5c8c
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

27 lines
896 B
Text

/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {NetworkRequest} from '../../lib/network-request.js';
/**
* Return the body of the response with the given ID. Rejects if getting the
* body times out.
* @param {LH.Gatherer.ProtocolSession} session
* @param {string} requestId
* @param {number} [timeout]
* @return {Promise<string>}
*/
async function fetchResponseBodyFromCache(session, requestId, timeout = 1000) {
requestId = NetworkRequest.getRequestIdForBackend(requestId);
// Encoding issues may lead to hanging getResponseBody calls: https://github.com/GoogleChrome/lighthouse/pull/4718
// session.sendCommand will handle timeout after 1s.
session.setNextProtocolTimeout(timeout);
const result = await session.sendCommand('Network.getResponseBody', {requestId});
return result.body;
}
export {fetchResponseBodyFromCache};