From d50b93d295da44d2ec285283fe26422a5bf0507c Mon Sep 17 00:00:00 2001 From: Vincent Voyer Date: Thu, 19 Mar 2020 11:29:00 +0100 Subject: [PATCH] docs(ssr): req is an IncomingMessage instance, not HttpRequest --- docs/basic-features/data-fetching.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/basic-features/data-fetching.md b/docs/basic-features/data-fetching.md index ea3d80cd5c8d759..ef7e747cd0425fd 100644 --- a/docs/basic-features/data-fetching.md +++ b/docs/basic-features/data-fetching.md @@ -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).