Skip to content

Commit fc5cb54

Browse files
authored
libp2p-gateway: .well-known/libp2p/protocols
Changed in libp2p spec draft and go-libp2p: libp2p/specs#508 (comment) libp2p/specs@3c0ac40 libp2p/go-libp2p#2757
1 parent e4e5754 commit fc5cb54

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/http-gateways/libp2p-gateway.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: libp2p+HTTP Transport Gateway Specification
33
description: >
44
Describes how HTTP Gateway semantics can be used over libp2p transports.
5-
date: 2023-10-04
5+
date: 2024-04-20
66
maturity: draft
77
editors:
88
- name: Adin Schmahmann
@@ -34,16 +34,16 @@ The [libp2p+HTTP specification](https://github.com/libp2p/specs/pull/508)
3434
describes how to use HTTP semantics over stream transports, as well as how
3535
to do discovery of what protocols are available (and where they are mounted).
3636

37-
### `.well-known/libp2p`
37+
### `.well-known/libp2p/protocols`
3838

3939
libp2p application sub-protocols exposed behind `/http/1.1` protocol can be
40-
discovered by the well-known resource (:cite[rfc8615]) at `.well-known/libp2p`.
40+
discovered by the well-known resource (:cite[rfc8615]) at `.well-known/libp2p/protocols`.
4141

4242
#### Protocol identifier
4343

4444
In order for a given HTTP Gateway protocol like the :cite[trustless-gateway] to
4545
work in this environment it requires a protocol identifier to act as a key in
46-
the `.well-known/libp2p` mapping file.
46+
the `.well-known/libp2p/protocols` mapping file.
4747

4848
The `/http/1.1` sub-protocol identifier for the IPFS Gateway when used over libp2p is:
4949

@@ -53,7 +53,7 @@ The `/http/1.1` sub-protocol identifier for the IPFS Gateway when used over libp
5353

5454
#### Protocol mounting
5555

56-
A reference `.well-known/libp2p` JSON body with mapping that assumes the gateway to be mounted at `/`:
56+
A reference `.well-known/libp2p/protocols` JSON body with mapping that assumes the gateway to be mounted at `/`:
5757

5858
```js
5959
{

0 commit comments

Comments
 (0)