From 88544d537b88a3549752c0c0a803f33ef3249abd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Richert?= <36002408+SebastienRichert@users.noreply.github.com> Date: Wed, 5 Apr 2023 16:11:38 -0400 Subject: [PATCH] docs(class-request.md): rephrase definition of request timing responseStart (#22170) --- docs/src/api/class-request.md | 2 +- packages/playwright-core/types/types.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/api/class-request.md b/docs/src/api/class-request.md index cd52ffd3a2..15b566bd08 100644 --- a/docs/src/api/class-request.md +++ b/docs/src/api/class-request.md @@ -284,7 +284,7 @@ Returns resource size information for given request. to retrieve the resource. The value is given in milliseconds relative to `startTime`, -1 if not available. - `requestStart` <[float]> Time immediately before the browser starts requesting the resource from the server, cache, or local resource. The value is given in milliseconds relative to `startTime`, -1 if not available. - - `responseStart` <[float]> Time immediately after the browser starts requesting the resource from the server, + - `responseStart` <[float]> Time immediately after the browser receives the first byte of the response from the server, cache, or local resource. The value is given in milliseconds relative to `startTime`, -1 if not available. - `responseEnd` <[float]> Time immediately after the browser receives the last byte of the resource or immediately before the transport connection is closed, whichever comes first. The value is given in milliseconds relative to diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.ts index 4791fe268d..4e8b7aaaca 100644 --- a/packages/playwright-core/types/types.d.ts +++ b/packages/playwright-core/types/types.d.ts @@ -17795,8 +17795,8 @@ export interface Request { requestStart: number; /** - * Time immediately after the browser starts requesting the resource from the server, cache, or local resource. The - * value is given in milliseconds relative to `startTime`, -1 if not available. + * Time immediately after the browser receives the first byte of the response from the server, cache, or local + * resource. The value is given in milliseconds relative to `startTime`, -1 if not available. */ responseStart: number;