Web Standards Web Server (native Request
/ Response
support)
#1146
thescientist13
started this conversation in
Ideas
Replies: 1 comment
-
Also, let's see if it can do #632 |
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
-
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
Request
andResponse
objects. 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
Request
properties, as this is all that Koa'sctx.request
gives usCurrently Greenwood supports
method
headers
body
- (text()
,json()
,formData()
Additional options to support
Blob
,URLSearchParams
, etc)mode
credentials
cache
redirect
referrer
referrerPolicy
integrity
keepalive
signal
priority
Maybe 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