Skip to content

Commit

Permalink
docs(NextRequest): req.cookie => req.cookies (#31975)
Browse files Browse the repository at this point in the history
  • Loading branch information
vvo authored Nov 30, 2021
1 parent 306c467 commit 2bd296d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api-reference/next/server.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2bd296d

Please sign in to comment.