일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- nginx
- 1주차
- cors
- node winston
- 항해99
- 2주차
- OpenAPI
- Transaction
- post
- JWT
- 웹 스크래핑(크롤링)
- 숙제
- 5주차
- 3주차
- 개발일지
- Get
- HTTPS
- 트랜잭션
- SQL
- 부트스트랩
- db
- MongoDB
- 4주차
- 노드 윈스턴
- NoSQL
- 위키백과
- 스파르타코딩클럽
- Node.js
- Sequelize
- 비동기
Archives
- Today
- Total
목록
728x90
superagent (1)
728x90
얼음꽃의 일지
[JS] superagent 사용법
간단한 superagent 사용법 입니다. Axios 보다는 이걸 사용하고있습니다. npm install superagent const superagent = await require('superagent'); const a = await superagent.get('주소') .set('header', '정보') .query({쿼리 정보}) const a = await superagent.post('주소') .set('header', '정보') // content-type, authorization 등등 .send({보낼 정보}) 이런 형식으로 바로 잡아서 사용 할 수 있습니다. 어떤면으로 보면 작성할 수 있는 부분이 간결하고 쉽더군요. 추가 내용들은 다음을 참조 하시면 됩니다. https://www.n..
잡다한 지식
2023. 11. 3. 14:57