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

Function getRateLimitPutRequest

tests/unit/api/bucketDeleteRateLimit.js:48–59  ·  view source on GitHub ↗
(bucketName, configJson)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected