Skip to content

Commit

Permalink
Merge branch 'master' of github.com:k6io/docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vi-nastya committed May 24, 2021
2 parents 7a429b0 + 84a7615 commit e6694a0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Note that in the case of redirects, all the information in the Response object w

| Name | Type | Description |
| ---------------------------------------------------------------------------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Response.body` | string | Response body content.<br /><br />See [Params.responseType](/javascript-api/k6-http/params) and [options.discardResponseBodies](/using-k6/options) for how to discard the body when it's not needed (and to save memory) or when handling bodies with binary data. |
| `Response.body` | string | Response body content, often used to extract dynamic data (see examples [here](/examples/correlation-and-dynamic-data)) and when verifying the presence of content using [checks](/javascript-api/k6/check-val-sets-tags).<br /><br />See [Params.responseType](/javascript-api/k6-http/params) and [options.discardResponseBodies](/using-k6/options) for how to discard the body when it is not needed (and to save memory) or when handling bodies with binary data. |
| `Response.cookies` | object | Response cookies. The object properties are the cookie names and the value is an array of cookie objects (with `name`, `value`, `domain`, `path`, `httpOnly`, `secure`, `maxAge` and `expires` fields). |
| `Response.error` | string | Error message if there was a non-HTTP error while trying to send the request. |
| `Response.error_code` | number | [Error code](/javascript-api/error-codes) if there was a non-HTTP error or 4xx or 5xx HTTP error it will be set to a specific code that describes the error. (Added in 0.24.0) |
Expand All @@ -29,8 +29,8 @@ Note that in the case of redirects, all the information in the Response object w
| `Response.request.headers` | object | Request headers. |
| `Response.request.method` | string | Request HTTP method. |
| `Response.request.url` | string | Request URL. |
| `Response.status` | number | HTTP status code returned by the server. |
| `Response.status_text` | string | _(new in k6 v0.29.0)_ HTTP status text returned by the server. |
| `Response.status` | number | HTTP status code returned by the server. |
| `Response.status_text` | string | _(new in k6 v0.29.0)_ HTTP status text returned by the server. |
| `Response.timings` | object | Performance timing information for the HTTP request. |
| `Response.timings.blocked` | float | Containing time (ms) spent blocked before initiating request. |
| `Response.timings.looking_up` (currently unavailable) | float | Containing time (ms) spent looking up host name in DNS. |
Expand Down

0 comments on commit e6694a0

Please sign in to comment.