GithubHelp home page GithubHelp logo

Http-key about i-d HOT 3 CLOSED

mnot avatar mnot commented on August 25, 2024
Http-key

from i-d.

Comments (3)

mnot avatar mnot commented on August 25, 2024

It's not just a cache key; just as Vary does, it identifies the aspects of the request that helped select the response.

Also, Key is shorter. IIRC Roy has strong feelings about that...

WRT predicate syntax - do you have a concrete suggestion? Roy originally talked about a regex-like syntax (not full regex), but the http parameter syntax uses existing parsers.

from i-d.

jasnell avatar jasnell commented on August 25, 2024

Hmm.. well, Key is rather ambiguous really. Not sure what alternative name could work, however, so I guess I'll leave that one alone for now.

On the predicate syntax... I guess the thing that I'm struggling with the most is whether people will go through the trouble of actually using the predicates properly. As I said, we can barely get people to use Vary properly and that's just header field names, let alone value matching of specific parameters and so forth.

Question: what if we're selecting a Header field that uses a non-ascii encoding? For example Link with a UTF-8 title parameter. How would that work exactly? Given that different fields allow for different encoding schemes, would I just use something like w*="..." and depend on the implementation to decode everything prior to matching?

Comment: I do see that you changed the case for 'c' and 'n' .. thanks for that ..

from i-d.

mnot avatar mnot commented on August 25, 2024

Hopefully, Key will be automagically generated by implementations, rather than be set by hand by authors. I do think we might have a semicolon-delimited selector (i.e., use everything before the first parameter, stripping whitespace) in the next draft, so that this fairly common syntactic convention can be easily dealt with correctly. Slightly more out there would be qvalue comparison, but I don't know if we need that yet.

WRT non-ascii encoding -- while it's out there, I don't think it's likely in a selecting request header, and if it is, someone can always do an extension modifier.

from i-d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.