From e927cc380cd0c4f4dde6a210af4fbbe7842d06e7 Mon Sep 17 00:00:00 2001 From: Leo Antunes Date: Wed, 21 Jun 2023 08:14:04 +0200 Subject: [PATCH] mention headers in canonical form --- .../markdown/docs/02 javascript api/09 k6-http/61 Response.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/markdown/docs/02 javascript api/09 k6-http/61 Response.md b/src/data/markdown/docs/02 javascript api/09 k6-http/61 Response.md index 1d64611628..c4a432d1ed 100644 --- a/src/data/markdown/docs/02 javascript api/09 k6-http/61 Response.md +++ b/src/data/markdown/docs/02 javascript api/09 k6-http/61 Response.md @@ -14,7 +14,7 @@ Note that in the case of redirects, all the information in the Response object w | `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) | -| `Response.headers` | object | Key-value pairs representing all HTTP headers sent by the server. | +| `Response.headers` | object | Key-value pairs representing all HTTP headers sent by the server. Note that the header names are in [canonical form](https://pkg.go.dev/net/http#CanonicalHeaderKey), i.e.: if the server responds with "accept-encoding", the key will be "Accept-Encoding". | | `Response.ocsp.produced_at` | number | If a stapled OSCP response was provided by server, the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC, representing the time when this OCSP stapled response was signed by CA (or by CA entrusted OCSP responder) | | `Response.ocsp.this_update` | number | If a stapled OSCP response was provided by server, the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC, representing the time at which the status being indicated was known to be correct. | | `Response.ocsp.next_update` | number | If a stapled OSCP response was provided by server, the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC, representing the time when this OCSP stapled response will be refreshed with CA (or by CA entrusted OCSP responder). |