Record what methods were called.
| 833 | |
| 834 | |
| 835 | class RecordingServerMiddlewareFactory(ServerMiddlewareFactory): |
| 836 | """Record what methods were called.""" |
| 837 | |
| 838 | def __init__(self): |
| 839 | super().__init__() |
| 840 | self.methods = [] |
| 841 | |
| 842 | def start_call(self, info, headers): |
| 843 | self.methods.append(info.method) |
| 844 | return None |
| 845 | |
| 846 | |
| 847 | class RecordingClientMiddlewareFactory(ClientMiddlewareFactory): |
no outgoing calls