Glossary: Next.js Beyond the Basics
Request and Response
Also written: Request, Response, Response.json
The standard web types that fetch uses and route handlers receive and return. Response.json(data, { status }) sends JSON with a status code.
Glossary: Next.js Beyond the Basics
Also written: Request, Response, Response.json
The standard web types that fetch uses and route handlers receive and return. Response.json(data, { status }) sends JSON with a status code.