File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2140,7 +2140,7 @@ added: v0.4.0
2140
2140
-->
2141
2141
2142
2142
* ` name ` {string}
2143
- * Returns: {any }
2143
+ * Returns: {number | string | string \[ ] | undefined }
2144
2144
2145
2145
Reads out a header that's already been queued but not sent to the client.
2146
2146
The name is case-insensitive. The type of the return value depends
@@ -2275,7 +2275,7 @@ added: v0.4.0
2275
2275
-->
2276
2276
2277
2277
* ` name ` {string}
2278
- * ` value ` {any }
2278
+ * ` value ` {number | string | string \[ ] }
2279
2279
* Returns: {http.ServerResponse}
2280
2280
2281
2281
Returns the response object.
@@ -3226,7 +3226,7 @@ added: v0.4.0
3226
3226
-->
3227
3227
3228
3228
* ` name` {string} Name of header
3229
- * Returns: {string | undefined}
3229
+ * Returns: {number | string | string \[ ] | undefined}
3230
3230
3231
3231
Gets the value of the HTTP header with the given name. If that header is not
3232
3232
set, the returned value will be ` undefined ` .
@@ -3328,7 +3328,7 @@ added: v0.4.0
3328
3328
-->
3329
3329
3330
3330
* ` name` {string} Header name
3331
- * ` value` {any } Header value
3331
+ * ` value` {number | string | string \[ ] } Header value
3332
3332
* Returns: {this}
3333
3333
3334
3334
Sets a single header value. If the header already exists in the to-be-sent
You can’t perform that action at this time.
0 commit comments