일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 |
- solidity
- graphQL
- Ethereum
- CLASS
- evm
- API
- JavaScript
- hardhat
- bitcoin
- express.js
- useState
- middleware
- error
- SSR
- CSS
- nextJS
- Redux
- tailwindcss
- Interface
- web
- node.js
- REACT
- 삶
- blockchain
- HTML
- 기준
- Props
- built in object
- typeScript
- concept
- Today
- Total
목록res.send (2)
ReasonJun
The res.end() and res.send() methods in Express.js are both used to send data back to the client. However, there are some key differences between the two methods. res.end() only sends the data that is passed to it. It does not set any headers or end the response. res.send() sends the data that is passed to it, and it also sets the Content-Type header to the appropriate value. It also ends the re..
The res.json() and res.send() methods in Express.js are both used to send data back to the client. However, there are some key differences between the two methods. res.json() sends the data in JSON format. This is the preferred format for sending data between applications, as it is both human-readable and machine-readable. res.send() can send data in any format. This includes JSON, HTML, images,..