From 5e7dd8eccc103b50ccaf13f1959547412ddd9902 Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Sun, 18 Sep 2016 20:01:02 +0200 Subject: rgw: add an early, initial implementation of the Swift's FormPost middleware. Signed-off-by: Radoslaw Zarzynski --- src/rgw/rgw_rest_swift.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/rgw/rgw_rest_swift.h') diff --git a/src/rgw/rgw_rest_swift.h b/src/rgw/rgw_rest_swift.h index 8478b1bad7b..26524af3032 100644 --- a/src/rgw/rgw_rest_swift.h +++ b/src/rgw/rgw_rest_swift.h @@ -238,6 +238,26 @@ public: }; +class RGWFormPost : public RGWPostObj_ObjStore { + std::string get_current_filename() const override; + bool is_next_file_to_upload() override; + + boost::optional current_data_part; + + bool stream_done = false; + +public: + RGWFormPost() = default; + ~RGWFormPost() = default; + + int get_params() override; + int get_data(ceph::bufferlist& bl) override; + void send_response() override; + + static bool is_formpost_req(req_state* const s); +}; + + class RGWSwiftWebsiteHandler { RGWRados* const store; req_state* const s; -- cgit v1.2.3