UNPKG
got-cjs
Version:
latest (12.5.4)
next (12.0.4)
12.5.4
12.5.3
12.5.2
12.3.1
12.0.4
12.0.1
12.0.0
12.0.0-beta.4
12.0.0-beta.3
12.0.0-beta.2
0.0.2
0.0.1
Human-friendly and powerful HTTP request library for Node.js
github.com/apify/got-cjs
apify/got-cjs
got-cjs
/
dist
/
source
/
core
/
utils
/
get-body-size.d.ts
4 lines
(3 loc)
•
198 B
TypeScript
View Raw
1
2
3
4
/// <reference types="node" />
import
type
{
ClientRequestArgs
}
from
'http'
;
export
default
function
getBodySize
(
body
:
unknown
,
headers
:
ClientRequestArgs
[
'headers'
]
):
Promise
<
number
|
undefined
>;