jstp / jstp-rfc

JSON Transfer Protocol RFC
0 stars 0 forks source link

Change proposal #1

Closed xaviervia closed 11 years ago

xaviervia commented 11 years ago

Moved from the Ruby JSTP implementation

This refers to the protocol rather than the library. The proposal is to, alike HTTP, delegate the Host as a differentiated header in the JSTP Dispatch rather than the first item in the Resource. The rationale is to:

An example of a JSTP dispatch following the new syntax would be:

{
  "protocol": ["JSTP", "0.2"], // Youp, that's a version upgrade
  "host": ["localhost"], // or, you know, whatever
  "resource": ["User", "4"],
  "method": "GET",
  // ... etc
}
xaviervia commented 11 years ago

Dispatches without host should be interpreted as aiming towards the same node where they originated.

xaviervia commented 11 years ago

Host implemented and effectively supported in version 0.4