docs(NextRequest): req.cookie => req.cookies (#31975)

This commit is contained in:
Vincent Voyer 2021-11-30 21:34:17 +00:00 committed by GitHub
parent 306c467c3b
commit 2bd296d4ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,7 @@ The function can be a default export and as such, does **not** have to be named
The `NextRequest` object is an extension of the native [`Request`](https://developer.mozilla.org/en-US/docs/Web/API/Request) interface, with the following added methods and properties:
- `cookie` - Has the cookies from the `Request`
- `cookies` - Has the cookies from the `Request`
- `nextUrl` - Includes an extended, parsed, URL object that gives you access to Next.js specific properties such as `pathname`, `basePath`, `trailingSlash` and `i18n`
- `geo` - Has the geo location from the `Request`
- `geo.country` - The country code