0.0.3 • Published 10 years ago

diet-request v0.0.3

Weekly downloads
1
License
-
Repository
-
Last release
10 years ago

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 is POST, string
  • host: defaults to query.host, string
  • path: defaults to query.path, string
  • port: defaults to 80 if http, 443 if https, integer
  • headers: detaults to [{'Content-Type': 'application/x-www-form-urlencoded'}], array
0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago