55 std::vector<std::string> d_allowed_hosts;
57 bool check(
const std::string &
url)
const;
62 AllowedHosts(
const AllowedHosts &) =
delete;
63 AllowedHosts &operator=(
const AllowedHosts &) =
delete;
65 virtual ~AllowedHosts() =
default;
68 static AllowedHosts *theHosts();
70 bool is_allowed(
const http::url &candidate_url);
71 bool is_allowed(
const http::url &candidate_url, std::string &whynot);
73 bool is_allowed(
const std::shared_ptr<http::url> &candidate_url);
74 bool is_allowed(
const std::shared_ptr<http::url> &candidate_url, std::string &whynot);