Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs: less fancy header array type (#8808)

Yury Semikhatskye5a92c3e81e7
diff --git a/docs/src/api/class-request.md b/docs/src/api/class-request.md
index 045681e6fa..753f5a5321 100644
--- a/docs/src/api/class-request.md
+++ b/docs/src/api/class-request.md
@@ -62,11 +62,21 @@ Returns the [Frame] that initiated this request.
**DEPRECATED** Incomplete list of headers as seen by the rendering engine. Use [`method: Request.allHeaders`] instead.
## async method: Request.headersArray
+* langs: js, csharp, python
- returns: <[Array]<[Array]<[string]>>>
An array with all the request HTTP headers associated with this request. Unlike [`method: Request.allHeaders`], header names are not lower-cased.
Headers with multiple entries, such as `Set-Cookie`, appear in the array multiple times.
+## async method: Request.headersArray
+* langs: java
+- returns: <[Array]<[Object]>>
+ - `name` <[string]> Name of the header.
+ - `value` <[string]> Value of the header.
+
+An array with all the request HTTP headers associated with this request. Unlike [`method: Request.allHeaders`], header names are not lower-cased.
+Headers with multiple entries, such as `Set-Cookie`, appear in the array multiple times.
+
## method: Request.isNavigationRequest
- returns: <[boolean]>
diff --git a/docs/src/api/class-response.md b/docs/src/api/class-response.md
index ce0c5a3913..976763a957 100644
--- a/docs/src/api/class-response.md
+++ b/docs/src/api/class-response.md
@@ -28,11 +28,21 @@ Returns the [Frame] that initiated this response.
**DEPRECATED** Incomplete list of headers as seen by the rendering engine. Use [`method: Response.allHeaders`] instead.
## async method: Response.headersArray
+* langs: js, csharp, python
- returns: <[Array]<[Array]<[string]>>>
An array with all the request HTTP headers associated with this response. Unlike [`method: Response.allHeaders`], header names are not lower-cased.
Headers with multiple entries, such as `Set-Cookie`, appear in the array multiple times.
+## async method: Response.headersArray
+* langs: java
+- returns: <[Array]<[Object]>>
+ - `name` <[string]> Name of the header.
+ - `value` <[string]> Value of the header.
+
+An array with all the request HTTP headers associated with this response. Unlike [`method: Response.allHeaders`], header names are not lower-cased.
+Headers with multiple entries, such as `Set-Cookie`, appear in the array multiple times.
+
## async method: Response.json
* langs: js, python
- returns: <[Serializable]>