Skip to content

Commit

Permalink
http: mark handler_base::_mandatory_param private
Browse files Browse the repository at this point in the history
this member variable should not be exposed to the outer world. it's
a part of the implementation of httpd subsystem.

by marking it private, allows us to store the typing of the params
into `_mandatory_param`.

Refs scylladb#2082
Signed-off-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov committed Feb 7, 2024
1 parent 3c4582b commit 185957e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/seastar/http/handlers.hh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ typedef const http::request& const_req;
*
*/
class handler_base {
std::vector<sstring> _mandatory_param;
protected:
handler_base() = default;
handler_base(const handler_base&) = default;
Expand All @@ -66,8 +67,7 @@ public:
return *this;
}

std::vector<sstring> _mandatory_param;

friend class routes;
};

}
Expand Down

0 comments on commit 185957e

Please sign in to comment.