reqrio 0.1.5 → 0.2.0-alpha2

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 CHANGED
@@ -9,7 +9,22 @@
9
9
  browsers.
10
10
 
11
11
  * Uses **BoringSSL** to implement TLS, consistent with browsers like Chrome and Edge.
12
+ ### Low-Copy
12
13
 
14
+ `reqrio` is a low copy request sending engine used to efficiently encrypt user or file data over TLS and send it to TCP. `reqrio`
15
+ Convert user input data such as form data, json, bytes, text, etc. into bytes for storage, and only copy once during TLS encryption, while only the data is processed in other stages
16
+ Borrow (borrowing). File uploads are read through into_deader to reduce memory overhead
17
+
18
+ ```text
19
+
20
+ Data ┌────────┐encode->bytes ┌──────────┐ ┌──────────┐
21
+ User ───────►│ │─────────────►│ │ │ │
22
+ │ ScReq │ │ Request │ copy slice │ fragment │ write ┌───────┐
23
+ │ AcReq │ │ borrow │────────────►│ TLS │──────►│ TCP │
24
+ Files │(Engine)│ into_reader │ buffer │ │ Encrypt │ └───────┘
25
+ User ───────►│ │─────────────►│ │ │ │
26
+ └────────┘ └──────────┘ └──────────┘
27
+ ```
13
28
  ### Request Header Order Table
14
29
 
15
30
  | No. | HTTP/2.0 | HTTP/1.1 |
package/libreqrio.so CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reqrio",
3
- "version": "0.1.5",
3
+ "version": "0.2.0-alpha2",
4
4
  "description": "A lightweight, high concurrency HTTP request library",
5
5
  "main": "index.js",
6
6
  "keywords": [
package/reqrio.dll CHANGED
Binary file