-
Notifications
You must be signed in to change notification settings - Fork 337
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
Explainer needed for creating requests #1143
Comments
+1, this would be good. Besides fields to set, some interesting points to cover:
Regarding fields specifically, a good heuristic is: if you would set them using the Except, specs really should be setting a destination, I think, which |
I think this is a duplicate of #186. I agree that this would be good, but I don't really have the bandwidth to work on this. And I feel like if I did work on it, I would want to first tackle issues such as #536 which I also haven't gotten to. If there's someone out there who could help with this I'd really appreciate it. Until that happens my advice would be to look at how HTML, |
Please don't let perfect be the enemy of good here; there's many layers of improvement possible. It would be a huge help just to have notes explaining the usage of the field for all the fields, rather than for half the fields like now. And note in there whether it's something set by the request creator, or something reflecting request progress that's manipulated by the algorithms. Like, the third field listed is the "local-urls-only flag", and I have absolutely no clue what it does or who it's for. Any explanation would help here; I don't need an involved tutorial. |
That specifically is for "SVG as image". So it could reference certain resources, but not leak data to the outside world. I'm not sure if that ever made it into implementations however or if they simply block all resources. Pretty sure that was added before we had a proper Working Mode. What I think I should do is create a "create a request" algorithm that does the right thing unless there are some esoteric needs and migrate callers to that. |
Cool, now put that into the spec. ^_^
Also good, but I'll still need guidance on the individual flags so I can figure out if I have esoteric needs. |
What other members are unclear? |
Just scanning down the list:
|
I'm currently writing the "@import on Fetch" commit, and I still just have a ???? on specifying the client for the request. What is the client, and how should I figure out what to set it to? |
For |
In the section on requests, there are, at current count, 39 separate fields "associated with" a request. Some of those appear to be things the spec firing off a request would set; some of them appear to be things the fetch machinery would set; some of them are unclear. Several of them have notes giving some guidance on what they're for; several of these notes aren't sufficient for me to actually understand what the field is for or how to use it; about half of the fields don't have notes at all, leaving me to guess at the purpose and intended use of the field from the name.
All in all, this means that I have no real clue what I'm supposed to do to, say, make CSS's
@import
use the Fetch machinery. Instead I have to ask Anne or Domenic to tell me how to do it, or try to hunt down a spec that's hopefully using best practices and cargo-cult their usage, hoping that they're not doing something odd that doesn't apply to my case.Since the stated point of Fetch is to allow specs to use a consistent, unambiguous machinery for processing requests and responses, it would be very useful to have explicit guidance given in the spec about how to actually use Fetch.
The text was updated successfully, but these errors were encountered: