10 #include <boost/algorithm/string.hpp>
11 #include <pion/net/HTTPAuth.hpp>
12 #include <pion/net/HTTPServer.hpp>
26 PION_LOG_INFO(
m_logger,
"Set authentication restrictions for HTTP resource: " << clean_resource);
34 PION_LOG_INFO(
m_logger,
"Set authentication permission for HTTP resource: " << clean_resource);
66 const std::string& resource)
const
68 AuthResourceSet::const_iterator i = resource_set.upper_bound(resource);
69 while (i != resource_set.begin()) {
72 if (i->empty() || resource.compare(0, i->size(), *i) == 0) {
75 if (resource.size() == i->size() || resource[i->size()]==
'/') {