일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- 코드스테이츠
- 토익 900
- js
- 2주 프로젝트
- javascript
- 4주 프로젝트
- 손에 익히며 배우는 네트워크 첫걸음
- 코어 자바스크립트
- 자바스크립트
- 렛츠기릿 자바스크립트
- 회고
- 토익
- 백준
- 파이썬
- programmers
- 리덕스
- HTTP
- 타임어택
- 제로초
- 정재남
- SQL 고득점 Kit
- LeetCode
- 리액트
- codestates
- 타입스크립트
- 타입스크립트 올인원
- 프로그래머스
- Async
- til
- 알고리즘
Archives
- Today
- Total
목록res.json vs res.send vs res.end (1)
Jerry
#8. res.json vs res.send vs res.end
이 express를 사용하면서, 위 세 가지 개념이 헷갈려서 공식 문서를 참고하여 적어보았다. 1. res.end([data] [, encoding]) Ends the response process. This method actually comes from Node core, specifically the response.end() method of http.ServerResponse. Use to quickly end the response without any data. If you need to respond with data, instead use methods such as res.send() and res.json(). res.end() res.status(404).end() 요약: 이 메서드..
CS/Terminology
2020. 12. 17. 23:58