Fix: Router Functions are the same weight as classes
also added some basic tests for it.
This commit is contained in:
parent
516e33d165
commit
f001b24749
7 changed files with 138 additions and 13 deletions
|
|
@ -21,6 +21,7 @@ public:
|
|||
void Stop();
|
||||
void SetRouter(Ref<Router> &router);
|
||||
void AddSendResponse(SendData);
|
||||
void CloseRequest(int id) const;
|
||||
Ref<MiddleWareHandler> &Middleware() { return m_MiddleWare; }
|
||||
bool HasBodyParser(const std::string &key) {
|
||||
return m_ParseFunctions.contains(key);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue