분류 Nodejs

wreck - HTTP 클라이언트 유틸리티.

컨텐츠 정보

  • 조회 253 (작성일 )

본문

https://github.com/hapijs/wreck


wreck Logo 


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);
}