diff options
author | Justin Karneges <justin@affinix.com> | 2013-02-07 19:04:02 -0800 |
---|---|---|
committer | Justin Karneges <justin@affinix.com> | 2013-02-07 19:04:02 -0800 |
commit | 73fa51dfb85a1af72105b778932f58e51b0d8ac8 (patch) | |
tree | 22eeb4ad6c7cba08df109e7b637654496e67516a /README | |
parent | c97ad8f5387261ba1d55d4e507c09a5b91de5fa2 (diff) | |
download | pollymer-73fa51dfb85a1af72105b778932f58e51b0d8ac8.tar pollymer-73fa51dfb85a1af72105b778932f58e51b0d8ac8.tar.gz |
adjust json-p protocol
Diffstat (limited to 'README')
-rw-r--r-- | README | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -141,7 +141,7 @@ JSON-P Protocol: This library supports JSON-P by supplying the following query string parameters in the request: - _callback: the JavaScript function to call in the response script + callback: the JavaScript function to call in the response script _method: the method name (default GET) _headers: additional headers encoded as JSON (default none) _body: request body (default empty) @@ -152,8 +152,8 @@ JSON-P Protocol: The server is expected to reply with a JSON object with fields: - code: the HTTP response code - status: the HTTP response status + code: the HTTP response status code + reason: the HTTP response reason phrase headers: any noteworthy HTTP response headers (default none) body: response body @@ -161,7 +161,7 @@ JSON-P Protocol: { "code": 200, - "status": "OK", + "reason": "OK", "headers": { "Content-Type": "application/json" }, |