def _build_stack(self) -> List[Callable]:
stack = []<EOL>for m in self.manager.middlewares:<EOL><INDENT>try:<EOL><INDENT>stack.append(getattr(m(self), self.name))<EOL><DEDENT>except AttributeError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>return stack<EOL>
Generates the stack of functions to call. It looks at the ordered list
of all middlewares and only keeps those which have the method we're
trying to call.