Skip to content

[Question]: Should new Headers methods work in RouteAsync ? #9298

@Thomas-GH-CA

Description

@Thomas-GH-CA

Your question

It seems when I call this new HeadersArrayAsync method like this in RouteAsync

await page.RouteAsync("**/*", async (route) =>
{
    var allHeaders= await route.Request.HeadersArrayAsync();
});

It throws
Microsoft.Playwright.PlaywrightException: 'Unable to fetch raw headers.'
Are these new methods not supposed to be used in RouteAsync ?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions