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:
Achieve closer compatibility to HTTP
Improve the semantics of gateway mode.
Inject the possibility of multiple hosts!
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
}
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: