From e5a92c3e81e78dcf9dadcb8ea46ca75f40163ce9 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Thu, 9 Sep 2021 09:00:11 -0700 Subject: [PATCH] docs: less fancy header array type (#8808) --- docs/src/api/class-request.md | 10 ++++++++++ docs/src/api/class-response.md | 10 ++++++++++ 2 files changed, 20 insertions(+) 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]>