About 687,000 results
Open links in new tab
  1. What are "res" and "req" parameters in Express functions?

    323 req is an object containing information about the HTTP request that raised the event. In response to req, you use res to send back the desired HTTP response. Those parameters can be named …

  2. Node.js: Difference between req.query [] and req.params

    Oct 3, 2019 · Is there a difference between obtaining QUERY_STRING arguments via req.query[myParam] and req.params.myParam? If so, when should I use which?

  3. How to access the GET parameters after "?" in Express?

    Jun 9, 2013 · req.params req.body req.query Note the guide does state the following: Direct access to req.body, req.params, and req.query should be favoured for clarity - unless you truly accept input …

  4. what is the purpose of req.body in express.js? - Stack Overflow

    May 16, 2021 · It contains the body of the request. Express provides body parsers. If the body is JSON data it's parsed and you can access the elements, e.g. req.body.name and req.body.description.

  5. node.js - req.query and req.param in ExpressJS - Stack Overflow

    Main differences between req.query and req.param in Express How are Both different from each other When to use then in what cases Suppose a client sends say Android (Key,value) pair in the request ...

  6. node.js - Difference between req.url and req.originalUrl in Express.js ...

    From the Express.js documentation: req.url is not a native Express property, it is inherited from Node’s http module. This property is much like req.url; however, it retains the original request URL, allowing …

  7. express: what is the difference between req.query and req.body

    Jun 18, 2015 · I want to know what is the difference between req.query and req.body? below is a piece of code where req.query is used. what happens if i use req.body instead of req.query. below function …

  8. How to cast req.query parameters in Express using Typescript

    How to cast req.query parameters in Express using Typescript Asked 5 years ago Modified 1 year, 11 months ago Viewed 24k times

  9. How can I generate a self-signed SSL certificate using OpenSSL?

    openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days XXX req PKCS#10 certificate request and certificate generating utility. -x509 this option outputs a self signed certificate instead of …

  10. node.js - How to get the full URL in Express? - Stack Overflow

    Apr 17, 2012 · The path comes from req.originalUrl (thanks @pgrassant). Note this DOES include the query string. docs here on req.url and req.originalUrl. Depending on what you intend to do with the …