File tree Expand file tree Collapse file tree 1 file changed +23
-3
lines changed Expand file tree Collapse file tree 1 file changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -3891,7 +3891,6 @@ NetworkResponseData = {
3891
3891
status: uint,
3892
3892
statusText: text,
3893
3893
headers: [ *NetworkHeader ],
3894
- cookies: [ *NetworkCookie ],
3895
3894
mimeType: text,
3896
3895
headersSize: uint / null,
3897
3896
bodySize: uint / null,
@@ -3901,9 +3900,30 @@ NetworkResponseData = {
3901
3900
};
3902
3901
</pre>
3903
3902
3904
- The <code>RequestData</code> type represents the response to a netowrk request.
3903
+ The <code>RequestData</code> type represents the response to a network request.
3904
+
3905
+ To <dfn>get the response data</div> given |response|:
3906
+
3907
+ 1. Let |url| be the result of running the [=URL serializer=] with |response|'s
3908
+ [=URL=].
3909
+
3910
+ 1. // How to get the protocol actually used for the connection
3911
+
3912
+ 1. Let |status| be |response|'s [=status=].
3913
+
3914
+ 1. Let |status text| be |response|'s [=status message=].
3915
+
3916
+ 1. Let |headers| be an empty list.
3917
+
3918
+ 1. For each (|name|, |value|) in |response|'s [=headers list=]:
3919
+
3920
+ 1. Append the result of [=get a Header=] with |name| and |value| to |headers|.
3921
+
3922
+ 1. Let |body size| be |response|'s [=response body info=]'s [=encoded size=].
3923
+
3924
+ 1. Let |content| be |response|'s [=response body info=]'s [=encoded size=].
3905
3925
3906
- ### Events ### {#module-network-events }
3926
+ ### Events ### {#module-network-event }
3907
3927
3908
3928
#### The network.beforeRequestSent Event #### {#event-network-beforeSendRequest}
3909
3929
<dl>
You can’t perform that action at this time.
0 commit comments