0.0.3 • Published 12 years ago
diet-request v0.0.3
Request
With this module you can make internal or cross site requests.
Simple GET request example:
new Request({
url : 'http://twitter.com/api/call',
end: function(response){
console.log(response);
}
});Request Parameters
- url: required,
string - method: defaults to
GET,string - data: defaults to
'', required if request method isPOST,string - host: defaults to
query.host,string - path: defaults to
query.path,string - port: defaults to
80if http,443if https,integer - headers: detaults to
[{'Content-Type': 'application/x-www-form-urlencoded'}],array