@orkestrel/server 0.0.18 → 0.0.20
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 +11 -7
- package/dist/src/server/index.cjs +211 -184
- package/dist/src/server/index.cjs.map +1 -1
- package/dist/src/server/index.d.cts +281 -232
- package/dist/src/server/index.d.ts +281 -232
- package/dist/src/server/index.js +212 -185
- package/dist/src/server/index.js.map +1 -1
- package/package.json +18 -19
package/README.md
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
# @orkestrel/server
|
|
2
2
|
|
|
3
|
-
A typed HTTP server for the `@orkestrel` line
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
> A typed HTTP server for the `@orkestrel` line: a node-bound `Server` lifecycle entity
|
|
4
|
+
> that composes a middleware onion around a consumed `@orkestrel/router` dispatcher,
|
|
5
|
+
> beside the `HTTPError` vocabulary and a shared substrate for cookies, WebCrypto
|
|
6
|
+
> tokens, content negotiation, ETag and Range, security headers, Server-Sent Events,
|
|
7
|
+
> and the body pipeline.
|
|
8
|
+
|
|
9
|
+
Hand `createServer` a dispatcher and a per-request state factory, call `start()`, and
|
|
10
|
+
call `stop()` when the process winds down. Built to sit beside `@orkestrel/router`
|
|
11
|
+
(routing, matching, and dispatch), `@orkestrel/contract` (validation),
|
|
12
|
+
`@orkestrel/emitter` (observable lifecycle), and `@orkestrel/abort` (cancellation).
|
|
13
|
+
Part of the `@orkestrel` line.
|
|
10
14
|
|
|
11
15
|
## Install
|
|
12
16
|
|