reqrio 0.1.5 → 0.2.0-alpha1
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 +15 -0
- package/libreqrio.so +0 -0
- package/package.json +1 -1
- package/reqrio.dll +0 -0
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
package/reqrio.dll
CHANGED
|
Binary file
|