분류 Nodejs

HTTP Client Utilities.

컨텐츠 정보

  • 조회 324 (작성일 )

본문

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