Closed Brendonovich closed 2 weeks ago
Latest commit: 19165e0024da84ebf2a5c872e4f3d16fb0d8fe62
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Thanks
Makes behaviour of HttpStatusCode and fetchEvent a bit more consistent
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Setting
event.response.statusCode
in non-AsyncLocalStorage environments currently throws an error from deep inside FetchEvent.What is the new behavior?
HTTPStatusCode will now throw when calling
getRequestEvent
rather than while settingstatusCode
, which is a bit more understandable imo.Other information