Skip to content

Commit c0bde4b

Browse files
miniakcodebytere
authored andcommitted
docs: responseHeaders should be Record<string, string[]> (electron#21730)
1 parent 702d18b commit c0bde4b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/api/web-request.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ response are visible by the time this listener is fired.
146146
* `timestamp` Double
147147
* `statusLine` String
148148
* `statusCode` Integer
149-
* `responseHeaders` Record<string, string> (optional)
149+
* `responseHeaders` Record<string, string[]> (optional)
150150
* `callback` Function
151151
* `headersReceivedResponse` Object
152152
* `cancel` Boolean (optional)
@@ -175,7 +175,7 @@ The `callback` has to be called with a `response` object.
175175
* `resourceType` String
176176
* `referrer` String
177177
* `timestamp` Double
178-
* `responseHeaders` Record<string, string> (optional)
178+
* `responseHeaders` Record<string, string[]> (optional)
179179
* `fromCache` Boolean - Indicates whether the response was fetched from disk
180180
cache.
181181
* `statusCode` Integer
@@ -205,7 +205,7 @@ and response headers are available.
205205
* `ip` String (optional) - The server IP address that the request was
206206
actually sent to.
207207
* `fromCache` Boolean
208-
* `responseHeaders` Record<string, string> (optional)
208+
* `responseHeaders` Record<string, string[]> (optional)
209209

210210
The `listener` will be called with `listener(details)` when a server initiated
211211
redirect is about to occur.
@@ -224,7 +224,7 @@ redirect is about to occur.
224224
* `resourceType` String
225225
* `referrer` String
226226
* `timestamp` Double
227-
* `responseHeaders` Record<string, string> (optional)
227+
* `responseHeaders` Record<string, string[]> (optional)
228228
* `fromCache` Boolean
229229
* `statusCode` Integer
230230
* `statusLine` String

0 commit comments

Comments
 (0)