-
Notifications
You must be signed in to change notification settings - Fork 149
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
Clarify behavior for multiple values for CH headers #700
Comments
@reschke @mnot per httpwg/http-core#111 (comment), how about...
Does that make sense? Would appreciate your guidance on this one :) |
I'm starting to wonder if Client Hints should adopt Structured Headers to avoid having to deal with these sorts of questions. Ilya, WDYT? |
@mnot that would hit a major reset on all existing CH implementations and set us back another couple years, I don't think this is the right call for CH. /cc @yoavweiss Surely CH is not the first instance where we had to spell out behavior for selecting one out of N header values? That said, if we don't have established verbiage for this, I'm happy to just make up some language ourselves to clarify how it should behave.. what we're aiming for ain't rocket science. :) |
I wouldn't want to set CH back that much (although it is lingering on :). I only mention it because all of the defined syntax seems like it would easily fit into SH, and Chrome already has a good start on a SH parser, thanks to @jyasskin's work on signed exchanges, etc. |
As an aside, the same clarification should also apply to |
@mnot my preference is to get this over the finish line without introducing dependency on SH. For one, we're also relying on Feature-Policy for delegation and we decided against SH there. WDYT of suggested text in #700 (comment) — warmer? @colinbendell ack. |
@igrigorik I hear you. My thinking is:
To be clear -- this is me as me, not me as chair. |
@mnot - could you clarify what you mean by CH adopting SH? Do you mean that the |
Both
Both
Considering that parsing and serialisation algorithms for these haven't been defined yet at all, I don't think it would take a lot of work (and would be happy to do a PR). |
Good catch, I think that's an oversight and we can fix that. Stepping back, my preference is (still) to proceed at this stage without introducing dependency on SH. First off, introducing SH does not address the issue we're actually trying to solve in this bug. Second, it adds another significant dependency to CH adoption that I would like to avoid at this stage, as it's yet another reason for a browser vendor to drag their feet and delay integrating support for SH. To get CH over the last call barrier, I believe we have two outstanding tasks:
I don't think we'll land on perfect text for (2), but this is not a unique or new gap vs other and existing specs, and I don't think we should block on this. @mnot does this sound reasonable? |
The issue is that it's defined to only have one value. I think you'd need to say something like:
Or, to really define it, define an algorithm. |
This was discussed at the HTTPWG meeting today and it was decided to go ahead with Structured Headers! |
Migrating feedback from Kari Hurtta..
Julian:
The text was updated successfully, but these errors were encountered: