0x676e67 / reqwest-impersonate

An easy and powerful Rust HTTP / WebSocket Client

Home Page:https://github.com/seanmonstar/reqwest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add priority frame to http2

0x953 opened this issue · comments

commented

With Chromium based browsers, according to https://tls.peet.ws/api/all, reqwest-impersonate is missing the priority frame:
Chromium-based:

[...]
        "flags": [
          "EndStream (0x1)",
          "EndHeaders (0x4)",
          "Priority (0x20)"
        ],
        "priority": {
          "weight": 256,
          "depends_on": 0,
          "exclusive": 1
        }
[...]

reqwest-impersonate:

[...]
        "flags": [
          "EndStream (0x1)",
          "EndHeaders (0x4)"
        ],
[...]

Would it be possible to add this frame?

Look at the http2 hash calculation. It does not participate in the calculation. In addition, the default priority is not implemented in the upstream repository. If the upstream warehouse catches up with the schedule, I will update it.