Skip to content

http/2 agent 下会丢失 undici:client:sendHeaders 事件 #510

@fengmk2

Description

@fengmk2
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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions