mirror of
https://github.com/lammertb/libhttp.git
synced 2025-12-22 04:02:04 +03:00
@@ -139,11 +139,14 @@ public:
|
||||
* URI's are ordered and prefix (REST) URI's are supported.
|
||||
*
|
||||
* @param uri - URI to match.
|
||||
* @param handler - handler instance to use. This will be free'ed
|
||||
* when the server closes and instances cannot be reused.
|
||||
* @param handler - handler instance to use.
|
||||
*/
|
||||
void addHandler(const std::string &uri, CivetHandler *handler);
|
||||
|
||||
void addHandler(const std::string &uri, CivetHandler &handler) {
|
||||
addHandler(uri, &handler);
|
||||
}
|
||||
|
||||
/**
|
||||
* removeHandler(const std::string &)
|
||||
*
|
||||
@@ -160,7 +163,7 @@ public:
|
||||
*
|
||||
* @return A vector of ports
|
||||
*/
|
||||
|
||||
|
||||
std::vector<int> getListeningPorts();
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user