koajs / koa

Expressive middleware for node.js using ES2017 async functions
https://koajs.com
MIT License
35.07k stars 3.22k forks source link

feat: add support web WHATWG #1830

Closed kravorkid closed 1 month ago

kravorkid commented 1 month ago

Feat to handle WHATWG #1777 I'm open to any suggestions

Checklist

fengmk2 commented 1 month ago

Should convert the body data type on respond https://github.com/koajs/koa/blob/master/lib/application.js#L302

A full http request test needs to be added to ensure that the response content is the expected result. e.g.: https://github.com/koajs/koa/blob/master/__tests__/application/respond.js#L175

kravorkid commented 1 month ago

@fengmk2 i've converted body data type and added some tests. I'm not working on that kind of data on a daily basis so i'm quite unsure if i'm testing the right thing & every corner case Just tell me if something is missing 🙂