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

Function createLoggingRequest

tests/unit/api/bucketGetLogging.js:34–47  ·  view source on GitHub ↗
(bucketName, post, headers = {})

Source from the content-addressed store, hash-verified

32};
33
34function createLoggingRequest(bucketName, post, headers = {}) {
35 return {
36 bucketName,
37 namespace,
38 headers: {
39 host: `${bucketName}.s3.amazonaws.com`,
40 ...headers,
41 },
42 url: '/?logging',
43 query: { logging: '' },
44 post,
45 actionImplicitDenies: false,
46 };
47}
48
49function createGetLoggingRequest(bucketName, headers = {}) {
50 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected