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

Function getNotificationRequest

tests/unit/api/bucketGetNotification.js:21–33  ·  view source on GitHub ↗
(bucketName, xml)

Source from the content-addressed store, hash-verified

19};
20
21function getNotificationRequest(bucketName, xml) {
22 const request = {
23 bucketName,
24 headers: {
25 host: `${bucketName}.s3.amazonaws.com`,
26 },
27 actionImplicitDenies: false,
28 };
29 if (xml) {
30 request.post = xml;
31 }
32 return request;
33}
34
35function getNotificationXml() {
36 const id = 'queue1';

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected