7
7
HTTPS is the HTTP protocol over TLS/SSL. In Node.js this is implemented as a
8
8
separate module.
9
9
10
- ## Class: https.Agent
10
+ ## Class: ` https.Agent `
11
11
<!-- YAML
12
12
added: v0.4.5
13
13
changes:
@@ -23,7 +23,7 @@ changes:
23
23
An [ ` Agent ` ] [ ] object for HTTPS similar to [ ` http.Agent ` ] [ ] . See
24
24
[ ` https.request() ` ] [ ] for more information.
25
25
26
- ### new Agent(\ [ options\] )
26
+ ### ` new Agent([options]) `
27
27
<!-- YAML
28
28
changes:
29
29
- version: v12.5.0
@@ -45,7 +45,7 @@ changes:
45
45
46
46
See [ ` Session Resumption ` ] [ ] for information about TLS session reuse.
47
47
48
- #### Event: 'keylog'
48
+ #### Event: ` 'keylog' `
49
49
<!-- YAML
50
50
added: v13.2.0
51
51
-->
@@ -70,7 +70,7 @@ https.globalAgent.on('keylog', (line, tlsSocket) => {
70
70
});
71
71
```
72
72
73
- ## Class: https.Server
73
+ ## Class: ` https.Server `
74
74
<!-- YAML
75
75
added: v0.3.4
76
76
-->
@@ -79,7 +79,7 @@ added: v0.3.4
79
79
80
80
See [ ` http.Server ` ] [ ] for more information.
81
81
82
- ### server.close(\ [ callback\] )
82
+ ### ` server.close([callback]) `
83
83
<!-- YAML
84
84
added: v0.1.90
85
85
-->
@@ -89,7 +89,7 @@ added: v0.1.90
89
89
90
90
See [ ` server.close() ` ] [ `http.close()` ] from the HTTP module for details.
91
91
92
- ### server.headersTimeout
92
+ ### ` server.headersTimeout `
93
93
<!-- YAML
94
94
added: v11.3.0
95
95
-->
@@ -98,18 +98,18 @@ added: v11.3.0
98
98
99
99
See [ ` http.Server#headersTimeout ` ] [ ] .
100
100
101
- ### server.listen()
101
+ ### ` server.listen() `
102
102
103
103
Starts the HTTPS server listening for encrypted connections.
104
104
This method is identical to [ ` server.listen() ` ] [ ] from [ ` net.Server ` ] [ ] .
105
105
106
- ### server.maxHeadersCount
106
+ ### ` server.maxHeadersCount `
107
107
108
108
* {number} ** Default:** ` 2000 `
109
109
110
110
See [ ` http.Server#maxHeadersCount ` ] [ ] .
111
111
112
- ### server.setTimeout(\ [ msecs\]\ [ , callback\] )
112
+ ### ` server.setTimeout([msecs] [, callback]) `
113
113
<!-- YAML
114
114
added: v0.11.2
115
115
-->
@@ -120,7 +120,7 @@ added: v0.11.2
120
120
121
121
See [ ` http.Server#setTimeout() ` ] [ ] .
122
122
123
- ### server.timeout
123
+ ### ` server.timeout `
124
124
<!-- YAML
125
125
added: v0.11.2
126
126
-->
@@ -129,7 +129,7 @@ added: v0.11.2
129
129
130
130
See [ ` http.Server#timeout ` ] [ ] .
131
131
132
- ### server.keepAliveTimeout
132
+ ### ` server.keepAliveTimeout `
133
133
<!-- YAML
134
134
added: v8.0.0
135
135
-->
@@ -138,7 +138,7 @@ added: v8.0.0
138
138
139
139
See [ ` http.Server#keepAliveTimeout ` ] [ ] .
140
140
141
- ## https.createServer(\ [ options\]\ [ , requestListener\] )
141
+ ## ` https.createServer([options] [, requestListener]) `
142
142
<!-- YAML
143
143
added: v0.3.4
144
144
-->
@@ -181,8 +181,8 @@ https.createServer(options, (req, res) => {
181
181
}).listen (8000 );
182
182
```
183
183
184
- ## https.get(options\ [ , callback\] )
185
- ## https.get(url\ [ , options\]\ [ , callback\] )
184
+ ## ` https.get(options[, callback]) `
185
+ ## ` https.get(url[, options] [, callback]) `
186
186
<!-- YAML
187
187
added: v0.3.6
188
188
changes:
@@ -222,15 +222,15 @@ https.get('https://encrypted.google.com/', (res) => {
222
222
});
223
223
```
224
224
225
- ## https.globalAgent
225
+ ## ` https.globalAgent `
226
226
<!-- YAML
227
227
added: v0.5.9
228
228
-->
229
229
230
230
Global instance of [ ` https.Agent ` ] [ ] for all HTTPS client requests.
231
231
232
- ## https.request(options\ [ , callback\] )
233
- ## https.request(url\ [ , options\]\ [ , callback\] )
232
+ ## ` https.request(options[, callback]) `
233
+ ## ` https.request(url[, options] [, callback]) `
234
234
<!-- YAML
235
235
added: v0.3.6
236
236
changes:
0 commit comments