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