Closed thiagowfx closed 8 months ago
cc @juliandescottes @sadym-chromium @jgraham
Follow-up questions:
PATCH
? It's not listed in the aforementioned table.I'm not sure those are the only methods usable with fetch? The spec says in a Note:
There are no restrictions on methods.
CHICKEN
is perfectly acceptable (and not a misspelling ofCHECKIN
). Other than those that are normalized there are no casing restrictions either.Egg
oreGg
would be fine, though uppercase is encouraged for consistency.
I don't think I would restrict the method list or enforce case and just let the browser handle the method normalisation as it usually does?
Oh, I missed this. Then...no AI needed, I suppose? Closing.
Currently, network methods use the following type:
?method: text,
For example, in https://w3c.github.io/webdriver-bidi/#command-network-continueRequest.
That said:
Here is a verbatim copy:
Only the strings above are valid methods.
We should make the spec stricter by using an union of the aforementioned words instead of allowing any free-form "text".