Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-08-29 | refactor: let handlers check if they are applicable | Azul | |
Instead of testing the preconditions for each handler in the dispatcher the dispatcher hands a request to one handler after the other until one of them responds. This is similar to the Chain of Responsibility patter but we iterate over the 'handler_chain' array instead of a linked list. To change the order of handlers or add other handlers change the array in the handler_chain function. | |||
2016-08-29 | refactor: split up ResponseHandler | Azul | |
Now we have a Dispatcher and two ResponseHandlers that have the same interface. Moving towards a Chain of Responsibility pattern. |