* Makes a GET request to a secure web server. * @param {string | URL} input * @param {{ * agent?: Agent | boolean; * auth?: string; * createConnection?: Function; * defaultPort?: number; * family?: number; * headers?: object; * hints?: number; * host?: string; * hostname
(input, options, cb)
| 662 | * @returns {ClientRequest} |
| 663 | */ |
| 664 | function get(input, options, cb) { |
| 665 | const req = request(input, options, cb); |
| 666 | req.end(); |
| 667 | return req; |
| 668 | } |
| 669 | |
| 670 | module.exports = { |
| 671 | Agent, |