This context is normally available in the following:

  • Next App Router route handler when using the Web API Response to create the response of the route handler
interface NextRequestAndResponseContext {
    request: NextRequest;
    response: Response;
}

Properties

Properties

request: NextRequest
response: Response