| 657 | } |
| 658 | |
| 659 | void UnregisterHTTPHandler(const std::string &prefix, bool exactMatch) |
| 660 | { |
| 661 | std::vector<HTTPPathHandler>::iterator i = pathHandlers.begin(); |
| 662 | std::vector<HTTPPathHandler>::iterator iend = pathHandlers.end(); |
| 663 | for (; i != iend; ++i) |
| 664 | if (i->prefix == prefix && i->exactMatch == exactMatch) |
| 665 | break; |
| 666 | if (i != iend) |
| 667 | { |
| 668 | LogPrint(BCLog::HTTP, "Unregistering HTTP handler for %s (exactmatch %d)\n", prefix, exactMatch); |
| 669 | pathHandlers.erase(i); |
| 670 | } |
| 671 | } |
| 672 | |
| 673 | std::string urlDecode(const std::string &urlEncoded) { |
| 674 | std::string res; |
no test coverage detected