@webpodjs/net-worker 0.2.3 → 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 +12 -0
- package/dist/pkg/webpod_net_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,8 +11,20 @@ produces frames into `toEngine`.
|
|
|
11
11
|
HTTPS too after TLS interception with the pod CA, WebSocket upgrades through the browser's
|
|
12
12
|
`WebSocket`; optionally a CORS proxy (docs/cors-proxy-protocol.md) and an L4 relay for raw TCP
|
|
13
13
|
(docs/relay-protocol.md).
|
|
14
|
+
A body `fetch()` decoded (gzip, br, deflate) reaches the guest decoded, without `Content-Encoding`
|
|
15
|
+
and `Content-Length`, chunked (`X-Webpod-Content-Encoding` says the coding). A target that exposes
|
|
16
|
+
none of its response headers to the page shows its `Content-Length` but not its coding: its
|
|
17
|
+
responses lose `Content-Length` too, coded or not (T267), so a direct download of such a target
|
|
18
|
+
shows no total size (curl's or npm's progress); a CORS proxy route keeps the length.
|
|
14
19
|
- **Inbound**: page connections (`pod.fetch`, `pod.net.connect`, `pod.net.expose` previews)
|
|
15
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.
|
|
16
28
|
|
|
17
29
|
`crates/webpod-net-wasm` is the wasm module (`NetPod`); `src/worker.js` moves frames and runs it.
|
|
18
30
|
|
|
Binary file
|