Skip to content

[Feature] Enhance the ability to capture headers. #31

@EthianWong

Description

@EthianWong

Desc

I used http-cookie-agent in my project to address cookie-related issues in Node.js. Unfortunately, it currently seems unable to correctly capture cookies written by this module. (I'm not sure if it's a timing issue or a problem with other logic)
...

To Resolve?

Depending on the input-output ratio, I believe it’s worth resolving.
...

Resolutions(Optional)

After a brief debugging session, I believe this seems to be a order issue. The http-cookie-agent modifies cookies after node-network-devtools, so node-network-devtools cannot detect those cookie changes.

I think we should ensure that, just like Chrome's DevTools, the correct results are displayed regardless of how or when the user interacts with it.

I believe it might be possible to rewrite request-related methods to intercept cookie writes, thereby fulfilling this requirement. This approach not only ensures compatibility with http-cookie-agent but also enhances cookie capture capabilities in other scenarios.
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions