Seafire-Server/seafire/server/query-parameters.hxx
2025-03-07 22:15:36 +01:00

31 lines
535 B
C++

#ifndef seafire__server__query_parameters_hxx_
#define seafire__server__query_parameters_hxx_
#include <map>
#include <optional>
#include <string>
namespace seafire::server
{
class query_parameters_t
{
public:
query_parameters_t(std::map<std::string, std::string>);
std::optional<std::string>
get(std::string const&) const;
static
std::optional<query_parameters_t>
try_parse(std::string const&);
private:
std::map<std::string, std::string> keys_;
};
} // namespace seafire::server
#endif