Unverified Commit 120b41ec authored by sharils's avatar sharils Committed by GitHub

Document req and res (#16432)

* Document req and res

* lint fix
Co-authored-by: 's avatarLuis Alvarez <luis@vercel.com>
Co-authored-by: 's avatarkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
parent 4d0d09ba
...@@ -71,8 +71,8 @@ For the initial page load, `getInitialProps` will run on the server only. `getIn ...@@ -71,8 +71,8 @@ For the initial page load, `getInitialProps` will run on the server only. `getIn
- `pathname` - Current route. That is the path of the page in `/pages` - `pathname` - Current route. That is the path of the page in `/pages`
- `query` - Query string section of URL parsed as an object - `query` - Query string section of URL parsed as an object
- `asPath` - `String` of the actual path (including the query) shown in the browser - `asPath` - `String` of the actual path (including the query) shown in the browser
- `req` - HTTP request object (server only) - `req` - [HTTP request object](https://nodejs.org/api/http.html#http_class_http_incomingmessage 'Class: http.IncomingMessage HTTP | Node.js v14.8.0 Documentation') (server only)
- `res` - HTTP response object (server only) - `res` - [HTTP response object](https://nodejs.org/api/http.html#http_class_http_serverresponse 'Class: http.ServerResponse HTTP | Node.js v14.8.0 Documentation') (server only)
- `err` - Error object if any error is encountered during the rendering - `err` - Error object if any error is encountered during the rendering
## Caveats ## Caveats
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment