About this spec¶
The Spec pages are normative: their rules say what a WebSpec gateway, its deployment, and its clients must do. Status and roadmap is the exception: it reports on the reference gateway and lists proposed work. The Guide pages hold walkthroughs, examples, and rationale, and are not normative. For the ideas behind the rules, start with How it works.
Conventions¶
- MUST, MUST NOT, SHOULD, SHOULD NOT, and MAY are used as in RFC 2119 and RFC 8174.
- Every requirement has a stable ID, such as MB-1. Each ID links to itself, so you can cite a rule by URL.
- Every header that WebSpec defines is named
WebSpec-<Name>, with noX-prefix (RFC 9110 §16.3.2.1, BCP 178). The rules define each one that a client must send or can rely on. For example,WebSpec-Definercarries the definer,WebSpec-Taintmarks open-world output, andWebSpec-Clearancecarries the level-3 clearance. Earlier versions used other names (Versions). - Where a field already exists, WebSpec uses it, such as
Allow,Cache-Control,Link, andIdempotency-Key(draft-ietf-httpapi-idempotency-key-header-07, an expired Internet-Draft). One name is a deliberate exception to theWebSpec-rule: the de-factoIdempotent-Replayed, which that draft does not define (Level 2). - Transcripts from the reference gateway use loopback names such as
notes.localhost.
Rules by prefix¶
| Prefix | Covers | Page |
|---|---|---|
HG PA AR |
Host grammar, paths and the route map, arguments | Addressing |
TC MB |
Tool contracts and method binding | Methods and contracts |
DF |
Definers (the WebSpec-Definer header) |
Methods and contracts |
RQ |
What each request must carry, by level | Methods and contracts |
RS DS |
Responses and discovery | Methods and contracts |
LV PO |
Levels and processing order | Security levels |
GD ID CL AP |
Guard (level 1), idempotency (2), clearance (3), approval (4) | Security levels |
CO SH |
Commit, and the harness shim | Security levels |
AU DP |
Audit log and deployment | Audit, deployment, and configuration |
Conformance¶
A gateway conforms at level n when it meets every rule that applies at levels up to n:
| Rules | Apply |
|---|---|
| Addressing: HG-1 to HG-7, PA-1 to PA-10, AR-1 to AR-5 | at every level |
| Contracts and binding: TC-1 to TC-6, MB-1 to MB-3, RQ-1, RQ-2 | at every level |
| Definers: DF-1 to DF-3 | at every level |
| Responses and discovery: RS-1 to RS-4, DS-1 to DS-3 | at every level |
| Levels, processing, and commit: LV-1, PO-1, PO-2, CO-1, CO-2 | at every level |
| Audit: AU-1 to AU-5 | at every level |
| Guard: GD-1 to GD-5 | from level 1 |
Required Idempotency-Key (ID-1) |
from level 2 |
| Idempotency behavior: ID-2 to ID-5 | whenever a key is sent, and always from level 2 |
| Clearance: CL-1 to CL-3 | from level 3 |
| Approval: AP-1 to AP-7 | at level 4 |
| Deployment: DP-1 to DP-9 | in every deployment |
| Harness: SH-1, SH-2 | on the client side |
Known limits says where the reference gateway, or the spec itself, falls short.