분류
Nodejs
wreck - HTTP 클라이언트 유틸리티.
본문
https://github.com/hapijs/wreck
const Wreck = require('wreck'); const example = async function () { const { res, payload } = await Wreck.get('http://example.com'); console.log(payload.toString()); }; try { example(); } catch (ex) { console.error(ex); }
- 이전글download - 파일을 손쉽게 다운로드하고 추출하십시오. 19.03.07
- 다음글request - 단순화 된 HTTP 요청 클라이언트. 19.03.07