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

Function createLoggingRequest

tests/unit/api/bucketPutLogging.js:33–46  ·  view source on GitHub ↗
(bucketName, post, headers = {})

Source from the content-addressed store, hash-verified

31};
32
33function createLoggingRequest(bucketName, post, headers = {}) {
34 return {
35 bucketName,
36 namespace,
37 headers: {
38 host: `${bucketName}.s3.amazonaws.com`,
39 ...headers,
40 },
41 url: '/?logging',
42 query: { logging: '' },
43 post,
44 actionImplicitDenies: false,
45 };
46}
47
48function createValidLoggingXML(targetBucket, targetPrefix = 'logs/') {
49 return '<?xml version="1.0" encoding="UTF-8"?>' +

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected