We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2425efc commit 1a3828dCopy full SHA for 1a3828d
readme.markdown
@@ -31,15 +31,15 @@ http.get({ path : '/beep' }, function (res) {
31
32
var http = require('http');
33
34
-## var req = http.request(options, cb)
+## var req = http.request(opts, cb)
35
36
-`options` can have:
+where `opts` are:
37
38
-* method
39
-* path
40
-* headers={}, as an object mapping key names to string or Array values
41
-* host=window.location.host
42
-* port=window.location.port
+* `opts.method='GET'` - http method verb
+* `opts.path` - path string, example: `'/foo/bar?baz=555'`
+* `opts.headers={}` - as an object mapping key names to string or Array values
+* `opts.host=window.location.host` - http host
+* `opts.port=window.location.port` - http port
43
44
The callback will be called with the response object.
45
0 commit comments