MCPcopy
hub / github.com/di-sukharev/opencommit / resolveBodyLength

Function resolveBodyLength

out/cli.cjs:73662–73665  ·  view source on GitHub ↗
(headers, body)

Source from the content-addressed store, hash-verified

73660 }
73661 if (utils_default.isURLSearchParams(body)) {
73662 body = body + "";
73663 }
73664 if (utils_default.isString(body)) {
73665 return (await encodeText(body)).byteLength;
73666 }
73667};
73668var resolveBodyLength = async (headers, body) => {

Callers 1

cli.cjsFile · 0.85

Calls 2

getBodyLengthFunction · 0.85
getContentLengthMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…