MCPcopy Index your code
hub / github.com/scality/cloudserver / _getRequestPayload

Function _getRequestPayload

lib/routes/routeBackbeat.js:127–136  ·  view source on GitHub ↗
(req, cb)

Source from the content-addressed store, hash-verified

125}
126
127function _getRequestPayload(req, cb) {
128 const payload = [];
129 let payloadLen = 0;
130 req.on('data', chunk => {
131 payload.push(chunk);
132 payloadLen += chunk.length;
133 })
134 .on('error', cb)
135 .on('end', () => cb(null, Buffer.concat(payload, payloadLen).toString()));
136}
137
138function _checkMultipleBackendRequest(request, log) {
139 const { headers, query } = request;

Callers 3

putMetadataFunction · 0.85
batchDeleteFunction · 0.85
routeIndexingAPIsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected