|
|
@ -35,7 +35,7 @@ void InterruptHTTPServer(); |
|
|
|
void StopHTTPServer(); |
|
|
|
void StopHTTPServer(); |
|
|
|
|
|
|
|
|
|
|
|
/** Handler for requests to a certain HTTP path */ |
|
|
|
/** Handler for requests to a certain HTTP path */ |
|
|
|
typedef boost::function<void(HTTPRequest* req, const std::string &)> HTTPRequestHandler; |
|
|
|
typedef boost::function<bool(HTTPRequest* req, const std::string &)> HTTPRequestHandler; |
|
|
|
/** Register handler for prefix.
|
|
|
|
/** Register handler for prefix.
|
|
|
|
* If multiple handlers match a prefix, the first-registered one will |
|
|
|
* If multiple handlers match a prefix, the first-registered one will |
|
|
|
* be invoked. |
|
|
|
* be invoked. |
|
|
|