Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embed hash of dictionary in compressed resource (optionally) #1153

Closed
pmeenan opened this issue Apr 9, 2024 · 1 comment
Closed

Embed hash of dictionary in compressed resource (optionally) #1153

pmeenan opened this issue Apr 9, 2024 · 1 comment

Comments

@pmeenan
Copy link

pmeenan commented Apr 9, 2024

It would be useful if, when using a raw dictionary for compression, the compressor could embed a hash of the dictionary that was used during compression. Then, at decompression time, if the hash is present and doesn't match the provided dictionary the decompression would fail. It could also be used to identify which dictionary in a set of dictionaries was used at decompression time.

For the HTTP content-encoding we are currently passing the dictionary hash as an additional response header but that depends on the header and the resource always being together. It would be cleaner if the payload itself could contain the dictionary information.

See httpwg/http-extensions#2770

@pmeenan
Copy link
Author

pmeenan commented Apr 29, 2024

Closing in favor of #1167

@pmeenan pmeenan closed this as completed Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant