xxx7xxxx
xxx7xxxx

Reputation: 824

Is the famous HPACK demo diagram wrong?

enter image description here

I was so much confused by 19 in the rightmost picture, which IMHO would be 4 [2].

The slide is from https://docs.google.com/presentation/d/1r7QXGYOLCh4fcUq0jDdDwKJWNqWK1o4xMtYpKZCJYjM/edit#slide=id.gfd0e3427_048

[2] https://http2.github.io/http2-spec/compression.html#rfc.section.A

Upvotes: 0

Views: 349

Answers (1)

Barry Pollard
Barry Pollard

Reputation: 46040

Yes looks wrong to me too, and I agree it should be 4 for :path and not 19 for accept.

The presenter's book High Performance Browser Networking (available online for free) has this in the HPACK section:

HPACK header compression example

Which, as you can see, did include the accept header so suspect they just made a typo when they simplified the example for the slides.

Upvotes: 2

Related Questions