install gulp to process code
This commit is contained in:
parent
24f6606c2c
commit
b6a3900ee2
1651 changed files with 253427 additions and 39 deletions
23
node_modules/http-https/README.md
generated
vendored
Normal file
23
node_modules/http-https/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# http-https
|
||||
|
||||
A wrapper that chooses http or https for requests
|
||||
|
||||
## USAGE
|
||||
|
||||
```javascript
|
||||
var hh = require('http-https')
|
||||
|
||||
var req = hh.request('http://example.com/bar')
|
||||
var secureReq = hh.request('https://secure.example.com/foo')
|
||||
|
||||
// or with a parsed object...
|
||||
var opt = url.parse(someUrlMaybeHttpMaybeHttps)
|
||||
opt.headers = {
|
||||
'user-agent': 'flergy mc flerg'
|
||||
}
|
||||
opt.method = 'HEAD'
|
||||
var req = hh.request(opt, function (res) {
|
||||
console.log('got response!', res.statusCode, res.headers)
|
||||
})
|
||||
req.end()
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue