rekwest 7.2.0 → 7.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ const res = await rekwest(url, {
|
|
|
48
48
|
body: { celestial: 'payload' },
|
|
49
49
|
headers: {
|
|
50
50
|
[HTTP2_HEADER_AUTHORIZATION]: 'Bearer [token]',
|
|
51
|
-
[HTTP2_HEADER_CONTENT_ENCODING]: 'br', //
|
|
51
|
+
[HTTP2_HEADER_CONTENT_ENCODING]: 'br', // Enables: body encoding
|
|
52
52
|
/** [HTTP2_HEADER_CONTENT_TYPE] is undue for
|
|
53
53
|
* Array/Blob/File/FormData/Object/URLSearchParams body types
|
|
54
54
|
* and will be set automatically, with an option to override it here
|
|
@@ -85,7 +85,7 @@ const file = new File(['bits'], 'file.xyz');
|
|
|
85
85
|
const readable = Readable.from('bits');
|
|
86
86
|
|
|
87
87
|
const fd = new FormData({
|
|
88
|
-
aux: Date.now(), //
|
|
88
|
+
aux: Date.now(), // Either [[key, value]] or kv sequenceable
|
|
89
89
|
});
|
|
90
90
|
|
|
91
91
|
fd.append('celestial', 'payload');
|
|
@@ -99,7 +99,7 @@ const res = await rekwest(url, {
|
|
|
99
99
|
body: fd,
|
|
100
100
|
headers: {
|
|
101
101
|
[HTTP2_HEADER_AUTHORIZATION]: 'Bearer [token]',
|
|
102
|
-
[HTTP2_HEADER_CONTENT_ENCODING]: 'zstd', //
|
|
102
|
+
[HTTP2_HEADER_CONTENT_ENCODING]: 'zstd', // Enables: body encoding
|
|
103
103
|
},
|
|
104
104
|
method: HTTP2_METHOD_POST,
|
|
105
105
|
});
|
package/package.json
CHANGED