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: src/http-gateways/trustless-gateway.md
+8-10Lines changed: 8 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,13 +47,13 @@ Optional `path` is permitted for requests that specify CAR format (`?format=car`
47
47
48
48
For block requests (`?format=raw` or `Accept: application/vnd.ipld.raw`), only `GET /ipfs/{cid}[?{params}]` is supported.
49
49
50
-
It is RECOMMENDED to additionally implement the [`GET` probe path](#dedicated-probe-paths).
50
+
Client and Server implementations SHOULD include support for the [`GET` probe path](#dedicated-probe-paths).
51
51
52
52
## `HEAD /ipfs/{cid}[/{path}][?{params}]`
53
53
54
54
Same as GET, but does not return any payload.
55
55
56
-
It is RECOMMENDED to additionally implement the [`HEAD` probe path](#dedicated-probe-paths).
56
+
Client and Server implementations SHOULD include support for the [`HEAD` probe path](#dedicated-probe-paths).
57
57
58
58
## `GET /ipns/{key}[?{params}]`
59
59
@@ -456,15 +456,13 @@ Trustless gateways SHOULD provide probing endpoints as described below.
456
456
`bafkqaaa` is the identity empty CID. This endpoint can be used to probe that
457
457
that the endpoint corresponds to a trustless gateway.
458
458
459
-
For block requests (`?format=raw`), when supported, it must return `200 OK`
459
+
For block requests (`?format=raw`), when supported, it MUST return `200 OK`
460
460
and an empty body.
461
461
462
-
For CAR requests (`?format=car`), when supported, it must return `200 OK` and
463
-
CAR file with root set to `bafkqaaa` and a single `bafkqaaa` block (which is
464
-
empty).
462
+
For CAR requests (`?format=car`), when supported, it MUST return `200 OK` and a valid CAR file with CAR Header `roots` set to `bafkqaaa`. Identity block MAY be skipped in the CAR Data section.
465
463
466
-
We recommend supporting only this specific identity CID and not random
467
-
identity CIDs.
464
+
This specific identity CID is special for probing. Other random
465
+
identity CIDs SHOULD not be handled.
468
466
469
467
### `HEAD /ipfs/bafkqaaa`
470
468
@@ -473,5 +471,5 @@ MUST support [`HEAD` requests](#head-ipfs-cid-path-params).
473
471
474
472
It must return `200 OK` in all cases.
475
473
476
-
We recommend supporting only this specific identity CID and not random
477
-
identity CIDs.
474
+
This specific identity CID is special for probing. Other random
0 commit comments