| 583 | } |
| 584 | |
| 585 | void UnregisterHTTPHandler(const std::string &prefix, bool exactMatch) |
| 586 | { |
| 587 | std::vector<HTTPPathHandler>::iterator i = pathHandlers.begin(); |
| 588 | std::vector<HTTPPathHandler>::iterator iend = pathHandlers.end(); |
| 589 | for (; i != iend; ++i) |
| 590 | if (i->prefix == prefix && i->exactMatch == exactMatch) |
| 591 | break; |
| 592 | if (i != iend) |
| 593 | { |
| 594 | LogPrint("http", "Unregistering HTTP handler for %s (exactmatch %d)\n", prefix, exactMatch); |
| 595 | pathHandlers.erase(i); |
| 596 | } |
| 597 | } |
| 598 |
no test coverage detected