You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -902,12 +902,12 @@ Emitted when a request fails, for example by timing out.
902
902
#### event: 'requestfinished'
903
903
- <[Request]>
904
904
905
-
Emitted when a request finishes successfully.
905
+
Emitted when a request finishes successfully after downloading the response body. For a successful response, the sequence of events is `request`, `response` and `requestfinished`.
906
906
907
907
#### event: 'response'
908
908
- <[Response]>
909
909
910
-
Emitted when a [response]is received.
910
+
Emitted when [response]status and headers are received for a request. For a successful response, the sequence of events is `request`, `response` and `requestfinished`.
911
911
912
912
#### event: 'worker'
913
913
- <[Worker]>
@@ -3629,9 +3629,9 @@ Dispatches a `mouseup` event.
3629
3629
3630
3630
### class: Request
3631
3631
3632
-
Whenever the page sends a request, such as for a network resource, the following events are emitted by playwright's page:
3632
+
Whenever the page sends a requestfor a network resource the following sequence of events are emitted by [Page]:
3633
3633
-[`'request'`](#event-request) emitted when the request is issued by the page.
3634
-
-[`'response'`](#event-response) emitted when/if the response is received for the request.
3634
+
-[`'response'`](#event-response) emitted when/if the response status and headers are received for the request.
3635
3635
-[`'requestfinished'`](#event-requestfinished) emitted when the response body is downloaded and the request is complete.
3636
3636
3637
3637
If request fails at some point, then instead of `'requestfinished'` event (and possibly instead of 'response' event), the [`'requestfailed'`](#event-requestfailed) event is emitted.
0 commit comments