@@ -748,12 +748,15 @@ See [`writable.cork()`][].
748
748
<!-- YAML
749
749
added: v0.1.90
750
750
changes:
751
+ - version: v15.0.0
752
+ pr-url: https://github.com/nodejs/node/pull/33155
753
+ description: The `data` parameter can now be a `Uint8Array`.
751
754
- version: v10.0.0
752
755
pr-url: https://github.com/nodejs/node/pull/18780
753
756
description: This method now returns a reference to `ClientRequest`.
754
757
-->
755
758
756
- * ` data ` {string|Buffer}
759
+ * ` data ` {string|Buffer|Uint8Array }
757
760
* ` encoding ` {string}
758
761
* ` callback ` {Function}
759
762
* Returns: {this}
@@ -1203,9 +1206,13 @@ before the [`'finish'`][] event is emitted.
1203
1206
1204
1207
<!-- YAML
1205
1208
added: v0.1.29
1209
+ changes:
1210
+ - version: v15.0.0
1211
+ pr-url: https://github.com/nodejs/node/pull/33155
1212
+ description: The `chunk` parameter can now be a `Uint8Array`.
1206
1213
-->
1207
1214
1208
- * ` chunk ` {string|Buffer}
1215
+ * ` chunk ` {string|Buffer|Uint8Array }
1209
1216
* ` encoding ` {string}
1210
1217
* ` callback ` {Function}
1211
1218
* Returns: {boolean}
@@ -1727,12 +1734,15 @@ See [`writable.cork()`][].
1727
1734
<!-- YAML
1728
1735
added: v0.1.90
1729
1736
changes:
1737
+ - version: v15.0.0
1738
+ pr-url: https://github.com/nodejs/node/pull/33155
1739
+ description: The `data` parameter can now be a `Uint8Array`.
1730
1740
- version: v10.0.0
1731
1741
pr-url: https://github.com/nodejs/node/pull/18780
1732
1742
description: This method now returns a reference to `ServerResponse`.
1733
1743
-->
1734
1744
1735
- * ` data ` {string|Buffer}
1745
+ * ` data ` {string|Buffer|Uint8Array }
1736
1746
* ` encoding ` {string}
1737
1747
* ` callback ` {Function}
1738
1748
* Returns: {this}
@@ -2081,9 +2091,13 @@ before the [`'finish'`][] event is emitted.
2081
2091
2082
2092
<!-- YAML
2083
2093
added: v0.1.29
2094
+ changes:
2095
+ - version: v15.0.0
2096
+ pr-url: https://github.com/nodejs/node/pull/33155
2097
+ description: The `chunk` parameter can now be a `Uint8Array`.
2084
2098
-->
2085
2099
2086
- * ` chunk ` {string|Buffer}
2100
+ * ` chunk ` {string|Buffer|Uint8Array }
2087
2101
* ` encoding ` {string} ** Default:** ` 'utf8' `
2088
2102
* ` callback ` {Function}
2089
2103
* Returns: {boolean}
@@ -2765,11 +2779,14 @@ and is connected, that socket will be destroyed as well.
2765
2779
<!-- YAML
2766
2780
added: v0.1.90
2767
2781
changes:
2782
+ - version: v15.0.0
2783
+ pr-url: https://github.com/nodejs/node/pull/33155
2784
+ description: The `chunk` parameter can now be a `Uint8Array`.
2768
2785
- version: v0.11.6
2769
2786
description: add `callback` argument.
2770
2787
-->
2771
2788
2772
- * ` chunk ` {string | Buffer}
2789
+ * ` chunk ` {string| Buffer|Uint8Array }
2773
2790
* ` encoding ` {string} Optional, ** Default** : ` utf8 `
2774
2791
* ` callback ` {Function} Optional
2775
2792
* Returns: {this}
@@ -3025,11 +3042,14 @@ Always `false`.
3025
3042
<!-- YAML
3026
3043
added: v0.1.29
3027
3044
changes:
3045
+ - version: v15.0.0
3046
+ pr-url: https://github.com/nodejs/node/pull/33155
3047
+ description: The `chunk` parameter can now be a `Uint8Array`.
3028
3048
- version: v0.11.6
3029
3049
description: The `callback` argument was added.
3030
3050
-->
3031
3051
3032
- * ` chunk ` {string | Buffer}
3052
+ * ` chunk ` {string| Buffer|Uint8Array }
3033
3053
* ` encoding ` {string} ** Default** : ` utf8 `
3034
3054
* ` callback ` {Function}
3035
3055
* Returns {boolean}
0 commit comments