Add onInformation interim response support - #1942
Open
jasnell wants to merge 1 commit into
Open
Conversation
Adds an optional fetch call for receiving 1xx responses
in a fetch.
e.g.
```js
fetch('...', {
onInformation(status, headers) {
// status is the 1xx code
// headers is the Headers object
},
});
```
Support is entirely optional. Implementations that currently
would ignore `onInformation` are fully compliant.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an optional fetch call for receiving 1xx responses in a fetch.
e.g.
Support is entirely optional. Implementations that currently would ignore
onInformationare fully compliant.(See WHATWG Working Mode: Changes for more details.)
💥 Error: 422 Unprocessable Entity 💥
PR Preview failed to build. (Last tried on Jul 11, 2026, 7:14 PM UTC).
More
PR Preview relies on a number of web services to run. There seems to be an issue with the following one:
🚨 Spec Generator - Spec Generator is the web service used to build bikeshed/ReSpec specs
🔗 Related URL
Error output:
[ { "lineNum": "9769:11", "messageType": "link", "text": "No 'dfn' refs found for 'invoke a callback function'." }, { "lineNum": "6768:10", "messageType": "lint", "text": "RFC2119 keyword in non-normative section (use: might, can, has to, or override with <span class=allow-2119>): \n callback is invoked for all informational responses, including 100 (Continue),\n 101 (Switching Protocols), 102 (Processing), and 103 (Early Hints).\n Support for invoking this callback is entirely optional; implementations that\n never invoke it are fully compliant with this specification.\n\n " }, { "lineNum": "8764:4", "messageType": "lint", "text": "RFC2119 keyword in non-normative section (use: might, can, has to, or override with <span class=allow-2119>): object containing the informational\n response’s headers, appropriately filtered. Any return value is ignored. Implementations are\n not required to support informational responses and may ignore this option entirely.\n " }, { "lineNum": null, "messageType": "failure", "text": "Did not generate, due to errors exceeding the allowed error level." } ]This seems to be an issue with the Spec Generator service. PR Preview doesn't manage this service and so has no control over it. If you've identified an issue with it, you can report the issue to the maintainers of Spec Generator directly. Please be courteous. Thank you!
If you don't have enough information above to solve the error by yourself or if the issue doesn't seem related to Spec Generator, you can file an issue with PR Preview.