Download attic/drafts/model/protocol_examples.rst from abr00kx/taper: direct link, hf CLI and curl.
- Browser
- Download file 1.18 kB
-
https://huggingface.co/abr00kx/taper/resolve/main/attic/drafts/model/protocol_examples.rst
- Command line
-
hf download hf://abr00kx/taper/attic/drafts/model/protocol_examples.rst
-
curl -L -o protocol_examples.rst https://huggingface.co/abr00kx/taper/resolve/main/attic/drafts/model/protocol_examples.rst
1.18 kB
| PUT /send/abc/ | |
| Host: ... | |
| Content-Length: ... | |
| Content-Type: application/json | |
| .. code :: javascript | |
| { | |
| "origin": "localhost:5000", | |
| "pdus": [ | |
| { | |
| "content": {}, | |
| "context": "tng", | |
| "depth": 12, | |
| "is_state": false, | |
| "origin": "localhost:5000", | |
| "pdu_id": 1404381396854, | |
| "pdu_type": "feedback", | |
| "prev_pdus": [ | |
| [ | |
| "1404381395883", | |
| "localhost:6000" | |
| ] | |
| ], | |
| "ts": 1404381427581 | |
| } | |
| ], | |
| "prev_ids": [ | |
| "1404381396852" | |
| ], | |
| "ts": 1404381427823 | |
| } | |
| HTTP/1.1 200 OK | |
| ====================================== | |
| GET /pull/-1/ HTTP/1.1 | |
| Host: ... | |
| Content-Length: 0 | |
| HTTP/1.1 200 OK | |
| Content-Length: ... | |
| Content-Type: application/json | |
| .. code :: javascript | |
| { | |
| origin: ..., | |
| prev_ids: ..., | |
| data: [ | |
| { | |
| data_id: ..., | |
| prev_pdus: [...], | |
| depth: ..., | |
| ts: ..., | |
| context: ..., | |
| origin: ..., | |
| content: { | |
| ... | |
| } | |
| }, | |
| ..., | |
| ] | |
| } | |