MCPcopy
hub / github.com/scality/cloudserver / createBucketTaggingRequest

Method createBucketTaggingRequest

tests/unit/helpers.js:446–462  ·  view source on GitHub ↗
(method, bucketName, body, implicitDeny = false)

Source from the content-addressed store, hash-verified

444 }
445
446 createBucketTaggingRequest(method, bucketName, body, implicitDeny = false) {
447 const request = {
448 bucketName,
449 headers: {
450 host: `${bucketName}.s3.amazonaws.com`,
451 },
452 url: '/?tagging',
453 query: { tagging: '' },
454 actionImplicitDenies: implicitDeny,
455 };
456 if (method === 'PUT') {
457 request.post = body || this.constructXml();
458 request.headers['content-md5'] = crypto.createHash('md5')
459 .update(request.post, 'utf8').digest('base64');
460 }
461 return request;
462 }
463}
464
465class AccessControlPolicy {

Callers 3

Calls 1

constructXmlMethod · 0.95

Tested by

no test coverage detected