Diff: [root] @ 57631c3ad1a | faq | css

Hello query, restructuring

File deleted: 33188 hellnet/protocols/HTTP [Diff]

diff --git a/hellnet/protocols/HTTP b/hellnet/protocols/HTTP
deleted file mode 100644
index b7ef712..0000000
-- a/hellnet/protocols/HTTP
++ /dev/null
@@ -1,9 +0,0 @@
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 |
\ No newline at end of file

File created: 33188 hellnet/protocols/http/hello [Diff]

diff --git a/hellnet/protocols/http/hello b/hellnet/protocols/http/hello
new file mode 100644
index 0000000..c97fe42
-- /dev/null
++ b/hellnet/protocols/http/hello
@@ -0,0 +1,40 @@
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
\ No newline at end of file

File created: 33188 hellnet/protocols/http/index [Diff]

diff --git a/hellnet/protocols/http/index b/hellnet/protocols/http/index
new file mode 100644
index 0000000..f9ebd5e
-- /dev/null
++ b/hellnet/protocols/http/index
@@ -0,0 +1,10 @@
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]] |
\ No newline at end of file

File: hellnet/protocols/queries [Diff]

diff --git a/hellnet/protocols/queries b/hellnet/protocols/queries
index 4c9cc62..49dc877 100644
-- 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

File: hellnet/protocols/transfer [Diff]

diff --git a/hellnet/protocols/transfer b/hellnet/protocols/transfer
index 731cf33..53a7991 100644
-- 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

By Voker57 on 2009-06-28 16:59:23 +0400 Powered by bitcheese wiki engine