-
-
Notifications
You must be signed in to change notification settings - Fork 36
Responses
psiinon edited this page Apr 4, 2013
·
4 revisions
Responses are optionally included in Zest scripts to give an example of the data expected to be returned as a result of a request.
They are not used by the Zest runtime but may be displayed or otherwise used by the tools that include Zest.
The data included in responses does not have to be complete, so strings in the original response can be removed or redacted if required.
Name | Format | Description |
headers | String | The headers returned |
body | String | The body returned |
statusCode | String | The HTTP status code expected |
responseTimeInMs | String | The original response time in ms |
elementType | String | Always ZestResponse |
{ "headers": "HTTP/1.1 200 OK\r\nDate: Wed, 03 Apr 2013 10:41:18 GMT\r\nConnection: Keep-Alive\r\nContent-Type: text/html\r\n\r\n", "body": "", "statusCode": 200, "responseTimeInMs": 40, "elementType": "ZestResponse" }
- Zest Core for details about Zest