← Back to Usage Guide Index
Short, practical definitions for terms used throughout m7Fetch docs.
-
AbortController — Web API to cancel a fetch. Pass
signalto HTTP calls; callabort()to cancel. -
absolute — Request option that bypasses the instance base URL and uses the provided URL as‑is.
-
AutoLoader — Logic behind
specs.load(...)that detects spec type (e.g., OpenAPI), fetches it (GET/POST), and hands off to SpecManager. See AUTOLOADER.md. -
awaitAll — Batch option:
truewaits for all items and returns aresultsmap;falsestreams handler execution and uses SyncLoader for completion. -
BatchLoader — Runs multiple HTTP jobs with per‑item handlers and a concurrency cap. Returns a
resultsmap (whenawaitAll:true) and coordinates completion via SyncLoader. See BATCHING_AND_COORDINATION.md. -
batch handlers — Strategies controlling storage/failure behavior per item:
batchStatus(default): store response; fail if!res.ok.batchStore: store always; only fail when handler returnsfalse.batchNone: no auto‑storage; your handler must store/return;falsemarks failure.
-
body | full | raw — Response shapes returned by HTTP/spec calls:
body: parsed body only,full:{ ok, status, headers, body },raw: nativeResponse.
-
credentials — Fetch option controlling cookie send/receive behavior (
omit,same-origin,include). -
context (batch) — Shared object where per‑item results are stored under their IDs.
-
CORS — Browser security policy for cross‑origin requests; governed by server
Access-Control-*headers. -
CSP — Content‑Security‑Policy header that constrains resource loads (e.g.,
connect-src,script-src).
- ESM (ES Modules) — Module system using
import/export. Required for dynamic module loading. - FETCH_DEFAULTS — Class‑level defaults on
HTTPfor fetch options (e.g.,credentials,mode). Extend via subclassing. See CONFIGURATION_AND_DEFAULTS.md. - format — Per‑request option choosing the response shape (
body|full|raw). - handler (batch) — Function
(res) => anyrun per item; returningfalsemarks that item as failed. - headers — HTTP headers; can be set instance‑wide (
new Net({ headers })) or per request. - HTTP — m7Fetch client that wraps
fetchwith base URL handling, bodies, and response shaping. See HTTP_GUIDE.md. - id (batch/spec) — Unique key for a batch item or a loaded spec.
- limit — Concurrency cap (max simultaneous requests) for a batch. See CONCURRENCY_LIMITING.md.
-
ModuleManager — Dynamically
import()ES modules and return their namespace. See MODULES.md. -
Net — The top‑level hub exposing
http,specs,modules, andbatch. -
operationId — OpenAPI operation identifier used by SpecManager to look up method/path.
-
OpenAPI — Popular API description format consumed by SpecManager.
-
path / query / headers / body — Parameter groups for SpecManager calls:
path: values injected into URL templates (/pets/{id}→{ id: "42" }).query:?k=vpairs appended to the URL.headers: merged with instance/request headers.body: payload for methods with a request body.
-
raw — Response format returning the native
Response. Use for manual parsing (blob/arrayBuffer/stream). -
results map — Object returned by
batch.run(..., { awaitAll:true })keyed by itemidwith each handler’s return value.
- SRI — Subresource Integrity; protects static assets/modules from tampering via hashes.
- SpecManager — Loads API specs and calls operations by
operationId. See SPEC_MANAGER.md. - SyncLoader — Minimal coordinator used by BatchLoader; tracks
required IDs, success/failure, and triggers final callbacks. - timeout — Per‑request ms value; aborts the request via
AbortControllerwhen available. - urlencoded — Request option for form posts (
application/x-www-form-urlencoded). - WHATWG — The Web Hypertext Application Technology Working Group, a standards body that maintains living web specifications such as the HTML Standard and Fetch Standard, referenced for API compliance in this library.
- x-type — Optional hint used by AutoLoader to identify spec types (e.g.,
openapi).
- HTTP → HTTP_GUIDE.md
- Batch → BATCHING_AND_COORDINATION.md
- Specs → SPEC_MANAGER.md and AUTOLOADER.md
- Config → CONFIGURATION_AND_DEFAULTS.md
- Errors → ERROR_HANDLING_AND_DEBUGGING.md
- Concurrency → CONCURRENCY_LIMITING.md