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

Method createObjectTaggingRequest

tests/unit/helpers.js:427–444  ·  view source on GitHub ↗
(method, bucketName, objectName, body)

Source from the content-addressed store, hash-verified

425 }
426
427 createObjectTaggingRequest(method, bucketName, objectName, body) {
428 const request = {
429 bucketName,
430 headers: {
431 host: `${bucketName}.s3.amazonaws.com`,
432 },
433 objectKey: objectName,
434 url: '/?tagging',
435 query: { tagging: '' },
436 actionImplicitDenies: false,
437 };
438 if (method === 'PUT') {
439 request.post = body || this.constructXml();
440 request.headers['content-md5'] = crypto.createHash('md5')
441 .update(request.post, 'utf8').digest('base64');
442 }
443 return request;
444 }
445
446 createBucketTaggingRequest(method, bucketName, body, implicitDeny = false) {
447 const request = {

Callers 4

Calls 1

constructXmlMethod · 0.95

Tested by

no test coverage detected