summaryrefslogtreecommitdiff
path: root/lib/https.js
Commit message (Collapse)AuthorAgeFilesLines
* http, https: don't depend on `globalAgent`Nathan Rajlich2014-02-261-2/+11
| | | | | | | | | | | | | | For the `request()` and `get()` functions. I could never really understand why these two functions go through agent first... Especially since the user could be passing `agent: false` or a different Agent instance completely, in which `globalAgent` will be completely bypassed. Moved the relevant logic from `Agent#request()` into the `ClientRequest` constructor. Incidentally, this commit fixes #7012 (which was the original intent of this commit).
* lib: remove unused variables and functionsBrian White2013-08-151-1/+0
|
* src: Replace macros with util functionsisaacs2013-08-011-6/+6
|
* lib: macro-ify type checksBen Noordhuis2013-07-241-6/+6
| | | | | Increases the grep factor. Makes it easier to harmonize type checks across the code base.
* http: Reuse more http/https Agent codeisaacs2013-07-091-33/+36
|
* http: Add agent.get/request methodsisaacs2013-07-091-1/+2
|
* tls: introduce TLSSocket based on tls_wrap bindingFedor Indutny2013-06-161-1/+1
| | | | | | | | Split `tls.js` into `_tls_legacy.js`, containing legacy `createSecurePair` API, and `_tls_wrap.js` containing new code based on `tls_wrap` binding. Remove tests that are no longer useful/valid.
* https: implement https.Server#setTimeout()Ben Noordhuis2013-04-301-2/+3
| | | | | | | Like commit d258fb0 ("http: More useful setTimeout API on server") but this time for the https module. Fixes #5361.
* https: optimize https.createConnection()Ryunosuke SATO2012-12-281-18/+17
| | | | Stop using `arguments` for performance and readability.
* https: fix renegotation attack protectionBen Noordhuis2012-10-091-0/+4
| | | | | | | Listen for the 'clientError' event that is emitted when a renegotation attack is detected and close the connection. Fixes test/pummel/test-https-ci-reneg-attack.js
* tls, https: validate server certificate by defaultBen Noordhuis2012-09-151-4/+19
| | | | | | | | | | | | | | | This commit changes the default value of the rejectUnauthorized option from false to true. What that means is that tls.connect(), https.get() and https.request() will reject invalid server certificates from now on, including self-signed certificates. There is an escape hatch: if you set the NODE_TLS_REJECT_UNAUTHORIZED environment variable to the literal string "0", node.js reverts to its old behavior. Fixes #3949.
* https: make https.get() accept a URLkoichik2012-08-241-0/+5
| | | | | | | https.get() now accepts either a URL (as a string) or an options object. Refs #2859. Fixes #3882.
* Revert "http/https: pass request to .createConnection()"Fedor Indutny2012-07-201-6/+5
| | | | This reverts commit 53716eb0b5338999761d115fad9d392077836e63.
* http/https: pass request to .createConnection()Fedor Indutny2012-07-201-5/+6
| | | | | It's useful for passing some additional options of request object to the underlying API
* net, http, https: add localAddress optionDmitry Nizovtsev2012-03-061-3/+21
| | | | Binds to a local address before making the outgoing connection.
* tls http https: don't pollute user's `options` objectMaciej Małecki2012-02-201-1/+0
|
* Lint all the JavaScripts.isaacs2012-02-181-2/+2
|
* https: make `https` use new `tls.connect` APIMaciej Małecki2012-01-081-1/+3
| | | | Refs #1983.
* http.request(url.parse(x))seebees2011-10-221-1/+5
| | | | | | | | | | | | | | | | | http2.js protocols object to store defaults for http and https, and use as a switch for supported protocols. options.hostname > options.host > 'localhost' if I have an options.auth element and I do not have an Authorization header, I do basic auth. http.request collapses to new ClientRequest since the defaults are handled by the protocol object test-http-url.parse* Fixes #1390 Conflicts: lib/http2.js
* http: remove legacy http libraryBen Noordhuis2011-10-041-36/+12
|
* Add support for TLS SNIFedor Indutny2011-07-291-4/+2
| | | | Fixes #1411
* http: make http and http2 co-existBen Noordhuis2011-07-261-7/+35
| | | | http2 is currently disabled pending addition of a --use-http2 switch
* http: http2 implementationMikeal Rogers2011-07-261-35/+7
|
* Add support for Unix Domain Sockets to HTTPMark Cavage2011-04-251-2/+2
| | | | fixes #979.
* OpenSSL NPN in node.jsFedor Indutny2011-04-191-0/+10
| | | | closes #926.
* Closes GH-721 Set default host header properlyisaacs2011-04-011-0/+3
| | | | | | However, this test is failing for some quite unrelated issue. Getting some odd "socket hangup" crashes, and only the first request ever makes it to the server.
* expose https.AgentRyan Dahl2011-03-221-1/+1
|
* Update copyright headersRyan Dahl2011-03-141-0/+21
|
* tls fixesRyan Dahl2011-02-071-0/+2
|
* http: agent takes options instead of host, port pairMikeal Rogers2011-02-051-3/+1
|
* Expose agent in http and https client.Mikeal Rogers2011-01-231-2/+6
|
* Expose http.getAgentRyan Dahl2011-01-211-0/+1
|
* Add https.get()Ryan Dahl2011-01-211-0/+10
|
* Initial pass at https clientRyan Dahl2011-01-211-0/+39
|
* First pass at new https serverRyan Dahl2011-01-031-0/+22