Related plugins
Description
When using RSC, in server functions you don't have access to the original request, and it's headers, cookies, url, etc...
You also can't set any headers/cookies/etc.. It would be nice if that was possible
Suggested solution
An API similar to Next.js would be nice
import { cookies } from 'vitejs/plugin-rsc/request'
import { redirect } from 'vitejs/plugin-rsc/request'
import { headers } from 'vitejs/plugin-rsc/request'
import { getRequest } from 'vitejs/plugin-rsc/request'
Alternative
the alternative would be to let frameworks implement this, but I would assume they would still like/need these low-level wrappers
Additional context
No response
Validations
Related plugins
plugin-react
plugin-react-swc
plugin-react-oxc
plugin-rsc
Description
When using RSC, in server functions you don't have access to the original
request, and it'sheaders,cookies,url, etc...You also can't set any headers/cookies/etc.. It would be nice if that was possible
Suggested solution
An API similar to Next.js would be nice
Alternative
the alternative would be to let frameworks implement this, but I would assume they would still like/need these low-level wrappers
Additional context
No response
Validations