| 646 | } |
| 647 | |
| 648 | void UnregisterHTTPHandler(const std::string& prefix, bool exactMatch) { |
| 649 | std::vector<HTTPPathHandler>::iterator i = pathHandlers.begin(); |
| 650 | std::vector<HTTPPathHandler>::iterator iend = pathHandlers.end(); |
| 651 | for (; i != iend; ++i) |
| 652 | if (i->prefix == prefix && i->exactMatch == exactMatch) break; |
| 653 | if (i != iend) { |
| 654 | LogPrint(BCLog::RPC, "Unregistering HTTP handler for %s (exactmatch %d)\n", prefix, exactMatch); |
| 655 | pathHandlers.erase(i); |
| 656 | } |
| 657 | } |
| 658 | |
| 659 | std::string urlDecode(const std::string& urlEncoded) { |
| 660 | std::string res; |
no test coverage detected