Updated Protocol draft 2.0 (markdown)
parent
0c5a2902c7
commit
9c8baf8bf2
1 changed files with 7 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
The 2.0 specification is quite different from the old one. This one is based on a stable and mature protocol; HTTP. We will borrow certain elements from the protocol, with main focus on HTTP's POST style. Below is a typical POST message in HTTP.
|
The 2.0 specification is quite different from the old one. This one is based on a stable and mature protocol; HTTP. We will borrow certain elements from the protocol, with main focus on HTTP's POST style. Here is a link: http://www.jmarshall.com/easy/http/#http1.1c1 Below is a typical POST message in HTTP.
|
||||||
|
|
||||||
POST /path/script.cgi HTTP/1.0
|
POST /path/script.cgi HTTP/1.0
|
||||||
From: frog@jmarshall.com
|
From: frog@jmarshall.com
|
||||||
|
@ -14,4 +14,9 @@ Our protocol looks like the following:
|
||||||
Content-Type: text
|
Content-Type: text
|
||||||
Content-Length: 40
|
Content-Length: 40
|
||||||
<BLAND LINE>
|
<BLAND LINE>
|
||||||
function helloWorld(x) {return x + 2 ;}
|
function helloWorld(x) {return x + 2 ;}
|
||||||
|
|
||||||
|
The following commands are to be supported:
|
||||||
|
define: defines new javascript
|
||||||
|
run: runs existing javascript
|
||||||
|
hello: request a new ID
|
Reference in a new issue