INNER CODE UNIT · JavaScript

match

cyrus-and/chrome-har-capturer · bin/cli.js:83

            const match = header.match(/([^:]+): *(.*)/);
            if (match) {
                const [, name, value] = match;
                headers[name] = value;
            }
        });
        await Network.setExtraHTTPHeaders({headers});
    }
}

function generatePostHook(userMetric) {
    return async (url, client) => {
        // allow the user specified grace time
        await new Promise((fulfill, reject) => {
            setTimeout(fulfill, program.grace || 0);
        });
        // allow to add the output of user-provided code to the HAR
        let user;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…