]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/rest: add 'zero' rest api 50507/head
authorCasey Bodley <cbodley@redhat.com>
Mon, 13 Mar 2023 19:54:41 +0000 (15:54 -0400)
committerCasey Bodley <cbodley@redhat.com>
Tue, 14 Mar 2023 20:51:02 +0000 (16:51 -0400)
commit5e5657127c27f8d5b11140da5c6b5ea0b41ec8ff
treeeb9461c47297e0d1ae3ada0ed26b581a5f0853be
parentadc74e79cbfa1ff1dba9ef8ecf2fe8aa58ffc85c
rgw/rest: add 'zero' rest api

when 'zero' is included in rgw_enable_apis, a /zero endpoint is added.
all paths under /zero refer to a single resource that supports the
following operations:

PUT requests discard the request body and update the content length
GET requests return a response body full of zeroes
HEAD requests return the current content length
DELETE requests reset the content length to 0

none of these operations require any authentication or i/o, so can be
used to benchmark the http frontend in isolation

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/CMakeLists.txt
src/rgw/rgw_appmain.cc
src/rgw/rgw_rest_zero.cc [new file with mode: 0644]
src/rgw/rgw_rest_zero.h [new file with mode: 0644]