Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How can I access the Request object in a Server API route? - Nuxt
N
Nuxt
•
14mo ago
•
12 replies
Phillip
How can I access the Request object in a Server API route?
I need to access the request of type Request in a server API route
. I thought about this
; but seems like this is not allowed in a server API route
.
const
request
=
useRequestEvent
();
const
request
=
useRequestEvent
();
Nuxt
Join
Nuxt Community Chat Server
31,686
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
server\api access
N
Nuxt / ❓・help
2y ago
server api route catchall
N
Nuxt / ❓・help
2y ago
Please how can I use the types of a Nitro server route in a declaration file
N
Nuxt / ❓・help
3y ago
How-to set a response header in the server route
N
Nuxt / ❓・help
16mo ago