mirror of
https://github.com/ceph/ceph
synced 2024-12-19 01:46:00 +00:00
rgw: rgw_cr_rest: allow headers to be specified in Put CRs
Adding another constructor overload for cases when we need to override the default headers Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
This commit is contained in:
parent
2d4e442b09
commit
43e8ea43d5
@ -267,6 +267,17 @@ public:
|
||||
: RGWSendRESTResourceCR<S, T>(_cct, _conn, _http_manager,
|
||||
"PUT", _path,
|
||||
_params, nullptr, _input, _result) {}
|
||||
|
||||
RGWPutRESTResourceCR(CephContext *_cct, RGWRESTConn *_conn,
|
||||
RGWHTTPManager *_http_manager,
|
||||
const string& _path,
|
||||
rgw_http_param_pair *_params,
|
||||
map <string, string> *_attrs,
|
||||
S& _input, T *_result)
|
||||
: RGWSendRESTResourceCR<S, T>(_cct, _conn, _http_manager,
|
||||
"PUT", _path,
|
||||
_params, _attrs, _input, _result) {}
|
||||
|
||||
};
|
||||
|
||||
class RGWDeleteRESTResourceCR : public RGWSimpleCoroutine {
|
||||
|
Loading…
Reference in New Issue
Block a user