@webpodjs/net-worker 0.2.4 → 0.2.5
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 +7 -0
- package/dist/pkg/webpod_net_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,6 +18,13 @@ produces frames into `toEngine`.
|
|
|
18
18
|
shows no total size (curl's or npm's progress); a CORS proxy route keeps the length.
|
|
19
19
|
- **Inbound**: page connections (`pod.fetch`, `pod.net.connect`, `pod.net.expose` previews)
|
|
20
20
|
arrive as `inbound` MessagePorts and become TCP connections to the guest.
|
|
21
|
+
- **Header bytes** (T320): header values and reason phrases cross between the guest's bytes and the page's
|
|
22
|
+
ByteStrings one char per byte, as a browser's `fetch()` and `Headers` have them, both ways: a guest
|
|
23
|
+
server's raw UTF-8 or latin1 value reaches `pod.fetch` and previews as `fetch()` would show it, a
|
|
24
|
+
page's value reaches the guest as its bytes, and so between the guest's HTTP clients and `fetch()` (a
|
|
25
|
+
value from 0x80 was decoded as UTF-8: no ByteString, which `Headers` refused, and the other way its
|
|
26
|
+
chars' UTF-8). A char above U+00FF (no ByteString) goes as its UTF-8. A CORS proxy's JSON envelope
|
|
27
|
+
carries text: a value's bytes read as UTF-8, as before.
|
|
21
28
|
|
|
22
29
|
`crates/webpod-net-wasm` is the wasm module (`NetPod`); `src/worker.js` moves frames and runs it.
|
|
23
30
|
|
|
Binary file
|