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

Function getRateLimitPutRequest

tests/unit/api/bucketGetRateLimit.js:49–60  ·  view source on GitHub ↗
(bucketName, configJson)

Source from the content-addressed store, hash-verified

47}
48
49function getRateLimitPutRequest(bucketName, configJson) {
50 return {
51 bucketName,
52 headers: {
53 host: `${bucketName}.s3.amazonaws.com`,
54 },
55 url: '/?rate-limit',
56 method: 'PUT',
57 post: JSON.stringify(configJson),
58 actionImplicitDenies: false,
59 };
60}
61
62describe('bucketGetRateLimit API', () => {
63 let sandbox;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected