From 59d4e6d553ae23e50eba58c64ac86be54ce6a106 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Mon, 30 Aug 2021 19:02:06 +0200 Subject: [PATCH] fix(types): change Request.sizes types to ints (#8555) --- docs/src/api/class-request.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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.