var http = require('http');
var req = http.request({host:"www.google.com"})
req.on("response",function(res){
// ***IncomingMessage***
})
why the type argument of callback is IncomingMessage? how to get from native code? This is the link of github: https://github.com/nodejs/node/blob/v0.12/lib/http.js
via ZHONGJIAFENG
No comments:
Post a Comment