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:
Abhishek Lekshmanan 2018-05-07 14:58:04 +02:00 committed by Yehuda Sadeh
parent 2d4e442b09
commit 43e8ea43d5

View File

@ -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 {