MCPcopy Create free account
hub / github.com/apache/arrow / RecordingServerMiddlewareFactory

Class RecordingServerMiddlewareFactory

python/pyarrow/tests/test_flight.py:833–842  ·  view source on GitHub ↗

Record what methods were called.

Source from the content-addressed store, hash-verified

831
832
833class 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
845class RecordingClientMiddlewareFactory(ClientMiddlewareFactory):

Callers 1

test_middleware_mappingFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_middleware_mappingFunction · 0.68