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

Function getRateLimitPutRequest

tests/unit/api/bucketPutRateLimit.js:34–46  ·  view source on GitHub ↗
(bucketName, configJson)

Source from the content-addressed store, hash-verified

32};
33
34function getRateLimitPutRequest(bucketName, configJson) {
35 return {
36 bucketName,
37 headers: {
38 host: `${bucketName}.s3.amazonaws.com`,
39 origin: 'http://example.com',
40 },
41 url: '/?rate-limit',
42 method: 'PUT',
43 post: JSON.stringify(configJson),
44 actionImplicitDenies: false,
45 };
46}
47
48describe('bucketPutRateLimit API', () => {
49 let sandbox;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected