mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-07-06 12:09:33 +02:00
refactor: Add ExecuteHTTPRPC function
Add ExecuteHTTPRPC to provide a way to execute an HTTP request without relying on HTTPRequest and libevent types. Behavior is not changing in any way, this is just moving code. This commit may be easiest to review using git's --color-moved option.
This commit is contained in:
@@ -50,7 +50,7 @@ void StopHTTPServer();
|
||||
void UpdateHTTPServerLogging(bool enable);
|
||||
|
||||
/** Handler for requests to a certain HTTP path */
|
||||
typedef std::function<bool(HTTPRequest* req, const std::string &)> HTTPRequestHandler;
|
||||
typedef std::function<void(HTTPRequest* req, const std::string &)> HTTPRequestHandler;
|
||||
/** Register handler for prefix.
|
||||
* If multiple handlers match a prefix, the first-registered one will
|
||||
* be invoked.
|
||||
|
||||
Reference in New Issue
Block a user