-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Content-Encoding and other HTTP Headers #315
Comments
I'd love this, since it perfectly fits into the narrative that Google is following with Brotli. |
How would this work in the reverse direction, for POST/PUT ? |
We can check the zdict URL for
Should we specify this behaviour?
This looks like a job for
Yeap! you are right! ...this approach requires better tooling and some guaranties from both sides (specially backend) to work.
Having a
|
This would work if you have already downloaded the dictionary once, but not for the first time.
Someone (app or client) would need to handle this case anyway, so if there was a general guidance on how to do this, it would help implementors to not fall into this trap.
Yes, but then this means that the download of the dictionary is not a regular GET: the HTTP server must know to include the Dictionaries are supposed to be used for very small files (a few KB or less), which makes me think that this would probably target REST APIs where you If this is targetting APIs, then some of the points above become less of an issue (how to validate a dictionary, how to retry if there is an issue, ...), and also the client -> server case could also be specified as part of this (client knows in advance that server supports |
I think there should be support for
|
Request for HTTP content encoding has been formally started : |
Zstandard is now published as RFC8478 . It's also fully registered as IANA media type. With these 2 conditions fulfilled, it's now possible to make progresses on above topics. |
It's possible to deliver content in Client-side support is still sparse, but exists, there is wget2 for example. We wish to build up support throughout 2019. |
I think we should start the conversation about how to standardise the use of Zstandard with HTTP and REST environments.
Content-Encoding Token
Does Zstandard already have an IANA-defined Content-Encoding token? if not, an obvious candidate would be
zstd
itself, for example:Dictionary Definition Header (Zstd-Dict)
The end of the section 14.11 of the RFC-2616 (HTTP/1.1) says:
Dictionaries can qualify as "additional information about the encoding parameters". Ideally client and server should agree in a pre-defined built-in dictionary, but can be useful to change dictionaries on-the-fly in some scenarios. For that cases, I propose the custom header
Zstd-Dict
that points to a URL with the dictionary used to encode the current data being sent:Notice that this header is not prefixed with
X-
, adhering to the RFC-6648.Thoughts?
The text was updated successfully, but these errors were encountered: