Hello query, restructuring
File deleted: hellnet/protocols/HTTP [Diff]
-- a/hellnet/protocols/HTTP++ /dev/null
@@ -1,10 +1 @@
h1. Hellnet HTTP interfaces
Peers are passing queries via HTTP queries (like GET /chunks/0a/04588fab48f or POST /insert with data piece).
h2. Query types
|_. Query |_. Path |_. Static/dynamic |_. Description |
| GET | /chunks/([0-9a-f]+) | static | [[/hellnet/tech/chunk|Chunk]] with hash $1 |
| GET | /meta/([^/]+)/([^/]+) | static | List of chunks which are inserted with [[/hellnet/tech/metachunks|meta]] $1:$2 |
-- /dev/null++ b/hellnet/protocols/http/hello
@@ -1 +1,41 @@
h1. *Hello* resource
h2. Brief description
"Hello" resource is located by path @/hello@. It must respond to HEAD with status 200 OK if server is working. Also it can respond to POST requests to collect sender's node information.
h2. Requests
h3. GET, HEAD
h4. Parameters
None required
h4. Description
Used to check if Hellnet node is up.
h4. Response
Always returns 200 OK status.
h3. POST
h4. Parameters
* host -- Node hostname
* post -- Node port
h4. Description
Used to establish link between nodes. Server will then respond with @GET /hello@ to check whether information is true. If so, it will add client to its nodelist.
h4. Response
Always returns 200 OK status. Content may be one of:
* "OK" -- node was checked and added to nodelist
* "FAIL" -- node failed to be online when checked
* "EXISTS" -- node is already in nodelist
-- /dev/null++ b/hellnet/protocols/http/index
@@ -1 +1,11 @@
h1. Hellnet HTTP interfaces
Peers are passing queries via HTTP queries (like GET /chunks/0a/04588fab48f or POST /insert with data piece).
h2. Query types
|_. Query |_. Path |_. Static/dynamic |_. Description |
| GET | /chunks/([0-9a-f]+) | static | [[/hellnet/tech/chunk|Chunk]] with hash $1 |
| GET | /meta/([^/]+)/([^/]+) | static | List of chunks which are inserted with [[/hellnet/tech/metachunks|meta]] $1:$2 |
| GET, HEAD, POST | /hello | dynamic | [[HTTP/hello]] |
-- a/hellnet/protocols/queries++ b/hellnet/protocols/queries
@@ -1,6 +1,6 @@
h1. DEPRECATED
This page contains deprecated information. This is going to be has been replaced with [[HTTP|HTTP [[http|HTTP interfaces]].
h1. Hellnet queries
-- a/hellnet/protocols/transfer++ b/hellnet/protocols/transfer
@@ -1,6 +1,6 @@
h1. DEPRECATED
This page contains deprecated information. This is going to be has been replaced with [[HTTP|HTTP [[http|HTTP interfaces]].
h1. HellNet data transfer protocol