| 365 | } |
| 366 | |
| 367 | inline bool |
| 368 | IpAllow::ACL::isNonstandardMethodAllowed(std::string_view method) const |
| 369 | { |
| 370 | if (_r == nullptr) { |
| 371 | return false; |
| 372 | } else if (_r->_method_mask == ALL_METHOD_MASK) { |
| 373 | return true; |
| 374 | } |
| 375 | bool method_in_set = |
| 376 | std::find_if(_r->_nonstandard_methods.begin(), _r->_nonstandard_methods.end(), |
| 377 | [method](std::string_view const &s) { return 0 == strcasecmp(s, method); }) != _r->_nonstandard_methods.end(); |
| 378 | return _r->_deny_nonstandard_methods ? !method_in_set : method_in_set; |
| 379 | } |
| 380 | |
| 381 | inline void |
| 382 | IpAllow::ACL::clear() |
no test coverage detected