Web Standards Web Server (native Request / Response support)
#1146
thescientist13
started this conversation in
Ideas
Replies: 2 comments
-
|
Also, let's see if it can do #632 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Somewhat related, as part of #1457 , saw some flakiness, maybe due in part to #1546 ?
It seems revering back to the "async" Probably something to keep an eye on |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
After working on #1045 and #1048, it's getting to be a little cumbersome not having a web standards based web server that can work directly with
RequestandResponseobjects. We have to go back and forth between Koa and web standards, you can see it all over the serve.js lifecycle file.This was more relevant after #1132 where we weren't able to support all
Requestproperties, as this is all that Koa'sctx.requestgives usCTX.REQUEST { method: 'GET', url: '/api/missing', header: { host: '127.0.0.1:8080', connection: 'close' } }Currently Greenwood supports
methodheadersbody- (text(),json(),formData()Additional options to support
Blob,URLSearchParams, etc)modecredentialscacheredirectreferrerreferrerPolicyintegritykeepalivesignalpriorityMaybe Hono could be that one, or we roll our own as a separate library? OR, we could probably pretty easily recreate our own implementation of Koa / livereload server, and then we would probably have a better time of implementing #48
Beta Was this translation helpful? Give feedback.
All reactions