@plurnk/plurnk-schemes-http 2.0.5 → 2.0.7
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 +10 -10
- package/SPEC.md +122 -606
- package/dist/Guard.d.ts +4 -0
- package/dist/Guard.d.ts.map +1 -1
- package/dist/Guard.js +43 -5
- package/dist/Guard.js.map +1 -1
- package/dist/Http.d.ts +1 -1
- package/dist/Http.d.ts.map +1 -1
- package/dist/Http.js +22 -619
- package/dist/Http.js.map +1 -1
- package/dist/HttpCache.d.ts +10 -0
- package/dist/HttpCache.d.ts.map +1 -0
- package/dist/HttpCache.js +384 -0
- package/dist/HttpCache.js.map +1 -0
- package/dist/HttpGet.d.ts +5 -26
- package/dist/HttpGet.d.ts.map +1 -1
- package/dist/HttpGet.js +30 -63
- package/dist/HttpGet.js.map +1 -1
- package/dist/HttpRequester.d.ts +4 -15
- package/dist/HttpRequester.d.ts.map +1 -1
- package/dist/HttpRequester.js +31 -49
- package/dist/HttpRequester.js.map +1 -1
- package/dist/HttpShared.d.ts +42 -0
- package/dist/HttpShared.d.ts.map +1 -0
- package/dist/HttpShared.js +244 -0
- package/dist/HttpShared.js.map +1 -0
- package/dist/WebFetcher.d.ts +2 -7
- package/dist/WebFetcher.d.ts.map +1 -1
- package/dist/WebFetcher.js +14 -26
- package/dist/WebFetcher.js.map +1 -1
- package/dist/Ws.d.ts.map +1 -1
- package/dist/Ws.js +17 -13
- package/dist/Ws.js.map +1 -1
- package/dist/index.d.ts +0 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -5
- package/dist/index.js.map +1 -1
- package/docs/https.md +37 -44
- package/docs/wss.md +27 -32
- package/package.json +6 -6
- package/dist/Config.d.ts +0 -5
- package/dist/Config.d.ts.map +0 -1
- package/dist/Config.js +0 -13
- package/dist/Config.js.map +0 -1
- package/dist/ContentType.d.ts +0 -2
- package/dist/ContentType.d.ts.map +0 -1
- package/dist/ContentType.js +0 -15
- package/dist/ContentType.js.map +0 -1
- package/dist/ErrorDetail.d.ts +0 -5
- package/dist/ErrorDetail.d.ts.map +0 -1
- package/dist/ErrorDetail.js +0 -5
- package/dist/ErrorDetail.js.map +0 -1
- package/dist/HostPolicy.d.ts +0 -11
- package/dist/HostPolicy.d.ts.map +0 -1
- package/dist/HostPolicy.js +0 -58
- package/dist/HostPolicy.js.map +0 -1
- package/dist/LiveAcquisitions.d.ts +0 -8
- package/dist/LiveAcquisitions.d.ts.map +0 -1
- package/dist/LiveAcquisitions.js +0 -30
- package/dist/LiveAcquisitions.js.map +0 -1
- package/dist/http-names.d.ts +0 -5
- package/dist/http-names.d.ts.map +0 -1
- package/dist/http-names.js +0 -6
- package/dist/http-names.js.map +0 -1
package/README.md
CHANGED
|
@@ -10,13 +10,13 @@ authored against the DB-free
|
|
|
10
10
|
|
|
11
11
|
| Operation | Behavior |
|
|
12
12
|
| ---------------------------------------------- | ----------------------------------------------------------------------------------------- |
|
|
13
|
-
|
|
|
14
|
-
|
|
|
15
|
-
|
|
|
16
|
-
|
|
|
17
|
-
|
|
|
18
|
-
|
|
|
19
|
-
|
|
|
13
|
+
| `await plurnk.read({ path: "http(s)://…" })` | Fetch or reuse/revalidate a GET representation, then project the selected response channel |
|
|
14
|
+
| `await plurnk.read({ path: "http(s)://…", range: "…" })` | Apply standard entry scope after the same acquisition/revalidation; scope does not bypass it |
|
|
15
|
+
| `await plurnk.find({ path: "http(s)://…", pattern: "…" })` | Materialize an exact URL when required, then use the universal entry query and matcher |
|
|
16
|
+
| `await plurnk.send({ target: "http(s)://…", text: "…" })` | POST the body and stream the response |
|
|
17
|
+
| `await plurnk.edit({ path: "http(s)://…", content: "…" })` | PUT a whole-resource replacement; line-scoped HTTP edits are invalid |
|
|
18
|
+
| `await plurnk.kill({ path: "http(s)://…" })` | Cancel a live acquisition of the address, or forget its stored response |
|
|
19
|
+
| `await plurnk.kill({ path: "http(s)://…", metadata: [{"remote": true}] })` | DELETE the remote resource and stream the response |
|
|
20
20
|
|
|
21
21
|
A path-pattern FIND surveys already-materialized web entries; it does not crawl
|
|
22
22
|
or discover the remote web. Exact matcher FIND shares the standard flat
|
|
@@ -26,7 +26,7 @@ The verbs that change a remote resource — POST, PUT, the remote DELETE, and a
|
|
|
26
26
|
WebSocket frame (EDIT or SEND on an open `ws(s)://` socket) — propose before
|
|
27
27
|
anything leaves the process, the same way a subprocess does;
|
|
28
28
|
`PLURNK_SERVICE_EFFECT_HOST` decides whether that settles by consent or runs
|
|
29
|
-
unattended ({§http-
|
|
29
|
+
unattended ({§http-manifest}). GET and the socket open are observation
|
|
30
30
|
and are ungated.
|
|
31
31
|
|
|
32
32
|
## HTTP channels
|
|
@@ -50,7 +50,7 @@ byte-readable. Input above the common binary ceiling returns `413`.
|
|
|
50
50
|
- WebFetcher checks automatic byte targets and redirects; direct HTTP and
|
|
51
51
|
WebSocket retain their explicit-target authority.
|
|
52
52
|
- Generic GETs negotiate origin Markdown first. When the origin returns HTML,
|
|
53
|
-
a selected materializer extension ({§http-
|
|
53
|
+
a selected materializer extension ({§http-lifecycle}) produces
|
|
54
54
|
`readable`; otherwise the installed HTML reader is the local route. Recoverable
|
|
55
55
|
materializer failures use that same reader as a `203` recovery floor. Hard
|
|
56
56
|
provider failures do not silently change producers.
|
|
@@ -80,7 +80,7 @@ Requires Node.js 26 or newer.
|
|
|
80
80
|
|
|
81
81
|
```sh
|
|
82
82
|
npm i @plurnk/plurnk-schemes-http
|
|
83
|
-
plurnk start
|
|
83
|
+
plurnk-service start
|
|
84
84
|
```
|
|
85
85
|
|
|
86
86
|
The shipped `.env.defaults` is the canonical operator configuration registry.
|