You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Coming out of #1132 , while we were able to support all the options for a Response constructor options, we were not able to do so for Request, but also, for Request.body specifically, a number of options were not validated. We definitely have support for
.text()
.json() (application/json)
.formData() (only supports application/x-www-url-encoded at this time)
So this is a tracking issue to make sure we revist these and test / support them where applicable
Details
Addition options we would like to support both from front end and back end:
Type of Change
Feature
Summary
Coming out of #1132 , while we were able to support all the options for a
Response
constructor options, we were not able to do so forRequest
, but also, forRequest.body
specifically, a number of options were not validated. We definitely have support for.text()
.json()
(application/json
).formData()
(only supportsapplication/x-www-url-encoded
at this time)So this is a tracking issue to make sure we revist these and test / support them where applicable
Details
Addition options we would like to support both from front end and back end:
.formData()
(multipart/form-data
/ file uploads)FormData
from the client side - Search page forFormData
based API route greenwood-demo-adapter-vercel#14URLSearchParams
Blob
/blob()
ArrayBuffer
/arrayBuffer()
TypedArray
DataView
I think most of this may be limited by what is actually possible over HTTP in the first place.
It should be noted that part of the struggle is due to Koa not being able to provide a fully formed
Request
object by default, as well as for development, having to use Workers (which can only support string data structures) to do cache busting like for API routes.So I think this could / should be all done comprehensively.
The text was updated successfully, but these errors were encountered: