@@ -6,24 +6,39 @@ HTTPS is the HTTP protocol over TLS/SSL. In Node.js this is implemented as a
6
6
separate module.
7
7
8
8
## Class: https.Agent
9
+ <!-- YAML
10
+ added: v0.4.5
11
+ -->
9
12
10
13
An Agent object for HTTPS similar to [ ` http.Agent ` ] [ ] . See [ ` https.request() ` ] [ ]
11
14
for more information.
12
15
13
16
## Class: https.Server
17
+ <!-- YAML
18
+ added: v0.3.4
19
+ -->
14
20
15
21
This class is a subclass of ` tls.Server ` and emits events same as
16
22
[ ` http.Server ` ] [ ] . See [ ` http.Server ` ] [ ] for more information.
17
23
18
24
### server.setTimeout(msecs, callback)
25
+ <!-- YAML
26
+ added: v0.11.2
27
+ -->
19
28
20
29
See [ ` http.Server#setTimeout() ` ] [ ] .
21
30
22
31
### server.timeout
32
+ <!-- YAML
33
+ added: v0.11.2
34
+ -->
23
35
24
36
See [ ` http.Server#timeout ` ] [ ] .
25
37
26
38
## https.createServer(options[ , requestListener] )
39
+ <!-- YAML
40
+ added: v0.3.4
41
+ -->
27
42
28
43
Returns a new HTTPS web server object. The ` options ` is similar to
29
44
[ ` tls.createServer() ` ] [ ] . The ` requestListener ` is a function which is
@@ -64,6 +79,9 @@ https.createServer(options, (req, res) => {
64
79
```
65
80
66
81
### server.close([ callback] )
82
+ <!-- YAML
83
+ added: v0.1.90
84
+ -->
67
85
68
86
See [ ` http.close() ` ] [ ] for details.
69
87
@@ -74,6 +92,9 @@ See [`http.close()`][] for details.
74
92
See [ ` http.listen() ` ] [ ] for details.
75
93
76
94
## https.get(options, callback)
95
+ <!-- YAML
96
+ added: v0.3.6
97
+ -->
77
98
78
99
Like [ ` http.get() ` ] [ ] but for HTTPS.
79
100
@@ -99,10 +120,16 @@ https.get('https://encrypted.google.com/', (res) => {
99
120
```
100
121
101
122
## https.globalAgent
123
+ <!-- YAML
124
+ added: v0.5.9
125
+ -->
102
126
103
127
Global instance of [ ` https.Agent ` ] [ ] for all HTTPS client requests.
104
128
105
129
## https.request(options, callback)
130
+ <!-- YAML
131
+ added: v0.3.6
132
+ -->
106
133
107
134
Makes a request to a secure web server.
108
135
0 commit comments