Skip to content

Add support for compression dictionary transport #30533

Description

@pmeenan

Compression dictionary transport is a HTTP mechanism for negotiating and using compression dictionaries for brotli and zstd-based content encodings. Depending on the use case, it can result in 90%+ smaller payloads than brotli or zstd alone.

It is also being defined in terms of fetch: whatwg/fetch#1854

For deno there are two interesting use cases:
1 - As defined in the spec where a dictionary is configured through the Use-As-Dictionary response header and used transparently for future requests.
2 - Applications may find it useful to explicitly configure a dictionary (that ships with the binary for example) to be used with a given fetch request. In this case, the same Available-Dictionary and Accept-Encoding can be used but it doesn't require that the dictionary be provided over the network.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ext/webrelated to the ext/web cratesuggestionsuggestions for new features (yet to be agreed)

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions