@@ -750,12 +750,15 @@ See [`writable.cork()`][].
750
750
<!-- YAML
751
751
added: v0.1.90
752
752
changes:
753
+ - version: v15.0.0
754
+ pr-url: https://github.com/nodejs/node/pull/33155
755
+ description: The `data` parameter can now be a `Uint8Array`.
753
756
- version: v10.0.0
754
757
pr-url: https://github.com/nodejs/node/pull/18780
755
758
description: This method now returns a reference to `ClientRequest`.
756
759
-->
757
760
758
- * ` data ` {string|Buffer}
761
+ * ` data ` {string|Buffer|Uint8Array }
759
762
* ` encoding ` {string}
760
763
* ` callback ` {Function}
761
764
* Returns: {this}
@@ -1205,9 +1208,13 @@ before the [`'finish'`][] event is emitted.
1205
1208
1206
1209
<!-- YAML
1207
1210
added: v0.1.29
1211
+ changes:
1212
+ - version: v15.0.0
1213
+ pr-url: https://github.com/nodejs/node/pull/33155
1214
+ description: The `chunk` parameter can now be a `Uint8Array`.
1208
1215
-->
1209
1216
1210
- * ` chunk ` {string|Buffer}
1217
+ * ` chunk ` {string|Buffer|Uint8Array }
1211
1218
* ` encoding ` {string}
1212
1219
* ` callback ` {Function}
1213
1220
* Returns: {boolean}
@@ -1740,12 +1747,15 @@ See [`writable.cork()`][].
1740
1747
<!-- YAML
1741
1748
added: v0.1.90
1742
1749
changes:
1750
+ - version: v15.0.0
1751
+ pr-url: https://github.com/nodejs/node/pull/33155
1752
+ description: The `data` parameter can now be a `Uint8Array`.
1743
1753
- version: v10.0.0
1744
1754
pr-url: https://github.com/nodejs/node/pull/18780
1745
1755
description: This method now returns a reference to `ServerResponse`.
1746
1756
-->
1747
1757
1748
- * ` data ` {string|Buffer}
1758
+ * ` data ` {string|Buffer|Uint8Array }
1749
1759
* ` encoding ` {string}
1750
1760
* ` callback ` {Function}
1751
1761
* Returns: {this}
@@ -2094,9 +2104,13 @@ before the [`'finish'`][] event is emitted.
2094
2104
2095
2105
<!-- YAML
2096
2106
added: v0.1.29
2107
+ changes:
2108
+ - version: v15.0.0
2109
+ pr-url: https://github.com/nodejs/node/pull/33155
2110
+ description: The `chunk` parameter can now be a `Uint8Array`.
2097
2111
-->
2098
2112
2099
- * ` chunk ` {string|Buffer}
2113
+ * ` chunk ` {string|Buffer|Uint8Array }
2100
2114
* ` encoding ` {string} ** Default:** ` 'utf8' `
2101
2115
* ` callback ` {Function}
2102
2116
* Returns: {boolean}
@@ -2784,11 +2798,14 @@ and is connected, that socket will be destroyed as well.
2784
2798
<!-- YAML
2785
2799
added: v0.1.90
2786
2800
changes:
2801
+ - version: v15.0.0
2802
+ pr-url: https://github.com/nodejs/node/pull/33155
2803
+ description: The `chunk` parameter can now be a `Uint8Array`.
2787
2804
- version: v0.11.6
2788
2805
description: add `callback` argument.
2789
2806
-->
2790
2807
2791
- * ` chunk ` {string | Buffer}
2808
+ * ` chunk ` {string| Buffer|Uint8Array }
2792
2809
* ` encoding ` {string} Optional, ** Default** : ` utf8 `
2793
2810
* ` callback ` {Function} Optional
2794
2811
* Returns: {this}
@@ -3044,11 +3061,14 @@ Always `false`.
3044
3061
<!-- YAML
3045
3062
added: v0.1.29
3046
3063
changes:
3064
+ - version: v15.0.0
3065
+ pr-url: https://github.com/nodejs/node/pull/33155
3066
+ description: The `chunk` parameter can now be a `Uint8Array`.
3047
3067
- version: v0.11.6
3048
3068
description: The `callback` argument was added.
3049
3069
-->
3050
3070
3051
- * ` chunk ` {string | Buffer}
3071
+ * ` chunk ` {string| Buffer|Uint8Array }
3052
3072
* ` encoding ` {string} ** Default** : ` utf8 `
3053
3073
* ` callback ` {Function}
3054
3074
* Returns {boolean}
0 commit comments