diff options
author | Soumya Koduri <skoduri@redhat.com> | 2021-06-23 17:46:24 +0200 |
---|---|---|
committer | Soumya Koduri <skoduri@redhat.com> | 2021-11-18 08:22:48 +0100 |
commit | 1e48366c7bc9610abceb4b91377807a67935886e (patch) | |
tree | 57e6f273208cdd0628780e1d8eb12a33abb48715 /src/rgw/rgw_rest_conn.h | |
parent | rgw/CloudTransition: Include aws region name for remote endpoint (diff) | |
download | ceph-1e48366c7bc9610abceb4b91377807a67935886e.tar.xz ceph-1e48366c7bc9610abceb4b91377807a67935886e.zip |
rgw/RGWRESTConn: Define a wrapper to send PUT/POST stream request
Similar to "get_resource()", add an API "send_resource()" to send
PUT/POST/DELETE Stream request on RGWRestConn
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
Diffstat (limited to 'src/rgw/rgw_rest_conn.h')
-rw-r--r-- | src/rgw/rgw_rest_conn.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/rgw/rgw_rest_conn.h b/src/rgw/rgw_rest_conn.h index e0e1b12abe5..0dfd0c7415c 100644 --- a/src/rgw/rgw_rest_conn.h +++ b/src/rgw/rgw_rest_conn.h @@ -200,6 +200,16 @@ public: RGWHTTPManager *mgr, optional_yield y); + int send_resource(const DoutPrefixProvider *dpp, + const string& method, + const string& resource, + rgw_http_param_pair *extra_params, + map<string, string>* extra_headers, + bufferlist& bl, + bufferlist *send_data, + RGWHTTPManager *mgr, + optional_yield y); + template <class T> int get_json_resource(const DoutPrefixProvider *dpp, const std::string& resource, param_vec_t *params, bufferlist *in_data, optional_yield y, T& t); |