Feature: add abstract and factory classes for overload controller module by weimch · Pull Request #134 · trpc-group/trpc-cpp
| /// @return bool true: succ; false: failed | ||
| virtual bool Init() { return true; } | ||
|
|
||
| /// @brief Pre handle the request |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
intercept request before recv request into queue?
| /// @return bool true: succ;false: failed | ||
| virtual bool OnRequest(const ServerContextPtr& context) = 0; | ||
|
|
||
| /// @brief Post handle of after server handling request. |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get request from queue before handle request?
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approve
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters