MCPcopy
hub / github.com/axios/axios / resolveBodyLength

Function resolveBodyLength

lib/adapters/fetch.js:189–193  ·  view source on GitHub ↗
(headers, body)

Source from the content-addressed store, hash-verified

187 };
188
189 const resolveBodyLength = async (headers, body) => {
190 const length = utils.toFiniteNumber(headers.getContentLength());
191
192 return length == null ? getBodyLength(body) : length;
193 };
194
195 return async (config) => {
196 let {

Callers 1

factoryFunction · 0.85

Calls 1

getBodyLengthFunction · 0.85

Tested by

no test coverage detected