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
21402140-->
21412141
21422142* ` name ` {string}
2143- * Returns: {any }
2143+ * Returns: {number | string | string \[ ] | undefined }
21442144
21452145Reads out a header that's already been queued but not sent to the client.
21462146The name is case-insensitive. The type of the return value depends
@@ -2275,7 +2275,7 @@ added: v0.4.0
22752275-->
22762276
22772277* ` name ` {string}
2278- * ` value ` {any }
2278+ * ` value ` {number | string | string \[ ] }
22792279* Returns: {http.ServerResponse}
22802280
22812281Returns the response object.
@@ -3226,7 +3226,7 @@ added: v0.4.0
32263226-->
32273227
32283228* ` name` {string} Name of header
3229- * Returns: {string | undefined}
3229+ * Returns: {number | string | string \[ ] | undefined}
32303230
32313231Gets the value of the HTTP header with the given name. If that header is not
32323232set, the returned value will be ` undefined ` .
@@ -3328,7 +3328,7 @@ added: v0.4.0
33283328-->
33293329
33303330* ` name` {string} Header name
3331- * ` value` {any } Header value
3331+ * ` value` {number | string | string \[ ] } Header value
33323332* Returns: {this}
33333333
33343334Sets 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