Skip to content

Commit

Permalink
docs(ssr): req is an IncomingMessage instance, not HttpRequest (#11194)
Browse files Browse the repository at this point in the history
  • Loading branch information
vvo authored Mar 19, 2020
1 parent 3907dfd commit f0c6df4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/basic-features/data-fetching.md
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ export async function getServerSideProps(context) {
The `context` parameter is an object containing the following keys:

- `params`: If this page uses a dynamic route, `params` contains the route parameters. If the page name is `[id].js` , then `params` will look like `{ id: ... }`. To learn more, take a look at the [Dynamic Routing documentation](/docs/routing/dynamic-routes.md).
- `req`: [The HTTP request object](https://nodejs.org/api/http.html#http_class_http_incomingmessage).
- `req`: [The HTTP IncomingMessage object](https://nodejs.org/api/http.html#http_class_http_incomingmessage).
- `res`: [The HTTP response object](https://nodejs.org/api/http.html#http_class_http_serverresponse).
- `query`: The query string.
- `preview`: `preview` is `true` if the page is in the preview mode and `false` otherwise. See the [Preview Mode documentation](/docs/advanced-features/preview-mode.md).
Expand Down

0 comments on commit f0c6df4

Please sign in to comment.