You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Route parameters are named URL segments that are used to capture the values specified at their position in the URL. The captured values are populated in the `req.params` object, with the name of the route parameter specified in the path as their respective keys.
The methods on the response object (`res`) in the following table can send a response to the client, and terminate the request-response cycle. If none of these methods are called from a route handler, the client request will be left hanging.
| [res.download()](/{{ page.lang }}/4x/api.html#res.download) | Prompt a file to be downloaded.
286
-
| [res.end()](/{{ page.lang }}/4x/api.html#res.end) | End the response process.
287
-
| [res.json()](/{{ page.lang }}/4x/api.html#res.json) | Send a JSON response.
288
-
| [res.jsonp()](/{{ page.lang }}/4x/api.html#res.jsonp) | Send a JSON response with JSONP support.
289
-
| [res.redirect()](/{{ page.lang }}/4x/api.html#res.redirect) | Redirect a request.
290
-
| [res.render()](/{{ page.lang }}/4x/api.html#res.render) | Render a view template.
291
-
| [res.send()](/{{ page.lang }}/4x/api.html#res.send) | Send a response of various types.
292
-
| [res.sendFile()](/{{ page.lang }}/4x/api.html#res.sendFile) | Send a file as an octet stream.
293
-
| [res.sendStatus()](/{{ page.lang }}/4x/api.html#res.sendStatus) | Set the response status code and send its string representation as the response body.
|[res.download()](/{{ page.lang }}/4x/api.html#res.download) | Prompt a file to be downloaded.|
286
+
|[res.end()](/{{ page.lang }}/4x/api.html#res.end) | End the response process.|
287
+
|[res.json()](/{{ page.lang }}/4x/api.html#res.json) | Send a JSON response.|
288
+
|[res.jsonp()](/{{ page.lang }}/4x/api.html#res.jsonp) | Send a JSON response with JSONP support.|
289
+
|[res.redirect()](/{{ page.lang }}/4x/api.html#res.redirect) | Redirect a request.|
290
+
|[res.render()](/{{ page.lang }}/4x/api.html#res.render) | Render a view template.|
291
+
|[res.send()](/{{ page.lang }}/4x/api.html#res.send) | Send a response of various types.|
292
+
|[res.sendFile()](/{{ page.lang }}/4x/api.html#res.sendFile) | Send a file as an octet stream.|
293
+
|[res.sendStatus()](/{{ page.lang }}/4x/api.html#res.sendStatus) | Set the response status code and send its string representation as the response body.|
0 commit comments