mirror of
https://github.com/vacp2p/specs.git
synced 2026-01-09 23:37:55 -05:00
fetch protocol: renamed some elements of the message format
This commit is contained in:
@@ -91,14 +91,14 @@ The libp2p protocol ID for this protocol is `/libp2p/fetch/0.0.1`
|
|||||||
The messages in the Fetch protocol use on of the following protobufs (proto3 syntax):
|
The messages in the Fetch protocol use on of the following protobufs (proto3 syntax):
|
||||||
|
|
||||||
```
|
```
|
||||||
message RequestLatest {
|
message FetchRequest {
|
||||||
string identifier = 1;
|
string identifier = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message RespondLatest {
|
message FetchResponse {
|
||||||
StatusCode status = 1;
|
StatusCode status = 1;
|
||||||
enum StatusCode {
|
enum StatusCode {
|
||||||
SUCCESS = 0;
|
OK = 0;
|
||||||
NOT_FOUND = 1;
|
NOT_FOUND = 1;
|
||||||
}
|
}
|
||||||
bytes data = 2;
|
bytes data = 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user