You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/http/README.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,35 @@ Creates a new HTTP service instance.
40
40
-`withCredentials` — Send cookies cross-origin (default: `true`)
41
41
-`withXSRFToken` — Include XSRF token header (default: `false`)
42
42
-`smartCredentials` — Auto-toggle `withCredentials` based on request host matching base URL host (default: `false`)
43
+
-`timeout` — Request timeout in milliseconds (default: `30000`). Pass `0` to disable; pass any positive number to override.
44
+
45
+
### Timeout
46
+
47
+
The factory applies a **30000ms (30s) default timeout** to every request. This default is the Armory's compliance posture for the war-room **Doctrine #8 library-author extension** (CLAUDE.md, 2026-04-22):
48
+
49
+
> Library-author extension (2026-04-22) — Shared HTTP factory packages (e.g., `@script-development/fs-http`) must expose a compliant timeout surface: a default, a required option, or a documented contract plus consumer-level enforcement. Inheriting framework defaults at the library layer silently propagates the violation to every consumer territory.
50
+
51
+
To override the service-wide default, pass `timeout` in the options:
To disable the default and accept Doctrine #8 responsibility at the consumer layer (e.g., AI streaming endpoints with their own timeout discipline), pass `timeout: 0`:
0 commit comments