const agent = new Agent({
allowH2: true,
});
const response = await request('https://registry.npmmirror.com', {
dataType: 'json',
timing: true,
dispatcher: agent,
});
console.log(response.status, response.headers);