File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -31,15 +31,15 @@ http.get({ path : '/beep' }, function (res) {
31
31
32
32
var http = require('http');
33
33
34
- ## var req = http.request(options , cb)
34
+ ## var req = http.request(opts , cb)
35
35
36
- ` options ` can have :
36
+ where ` opts ` are :
37
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
38
+ * ` opts. method='GET' ` - http method verb
39
+ * ` opts. path` - path string, example: ` '/foo/bar?baz=555' `
40
+ * ` opts. headers={}` - as an object mapping key names to string or Array values
41
+ * ` opts. host=window.location.host ` - http host
42
+ * ` opts. port=window.location.port ` - http port
43
43
44
44
The callback will be called with the response object.
45
45
You can’t perform that action at this time.
0 commit comments