Added warning to Server::resource
This commit is contained in:
parent
8cdebfb612
commit
fa8c381a4f
1 changed files with 4 additions and 3 deletions
|
|
@ -152,6 +152,7 @@ namespace SimpleWeb {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
public:
|
public:
|
||||||
|
/// Warning: do not add or remove resources after start() is called
|
||||||
std::map<regex_orderable, std::map<std::string,
|
std::map<regex_orderable, std::map<std::string,
|
||||||
std::function<void(std::shared_ptr<typename ServerBase<socket_type>::Response>, std::shared_ptr<typename ServerBase<socket_type>::Request>)> > > resource;
|
std::function<void(std::shared_ptr<typename ServerBase<socket_type>::Response>, std::shared_ptr<typename ServerBase<socket_type>::Request>)> > > resource;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue