Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix(types): change Request.sizes types to ints (#8555)

Max Schmitt59d4e6d553ae
diff --git a/docs/src/api/class-request.md b/docs/src/api/class-request.md
index 02306d85a7..d1290849d5 100644
--- a/docs/src/api/class-request.md
+++ b/docs/src/api/class-request.md
@@ -186,10 +186,10 @@ Returns the matching [Response] object, or `null` if the response was not receiv
## method: Request.sizes
- returns: <[Object]>
- `requestBodySize` <[int]> Size of the request body (POST data payload) in bytes. Set to 0 if there was no body.
- - `requestHeadersSize` <[float]> Total number of bytes from the start of the HTTP request message until (and including) the double CRLF before the body.
+ - `requestHeadersSize` <[int]> Total number of bytes from the start of the HTTP request message until (and including) the double CRLF before the body.
- `responseBodySize` <[int]> Size of the received response body in bytes.
- - `responseHeadersSize` <[float]> Total number of bytes from the start of the HTTP response message until (and including) the double CRLF before the body.
- - `responseTransferSize` <[float]> Total number of bytes received for the request.
+ - `responseHeadersSize` <[int]> Total number of bytes from the start of the HTTP response message until (and including) the double CRLF before the body.
+ - `responseTransferSize` <[int]> Total number of bytes received for the request.
Returns resource size information for given request. Requires the response to be finished via [`method: Response.finished`]
to ensure the info is available.