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

Class RecordingServerMiddlewareFactory

python/pyarrow/tests/test_flight.py:835–844  ·  view source on GitHub ↗

Record what methods were called.

Source from the content-addressed store, hash-verified

833
834
835class 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
847class RecordingClientMiddlewareFactory(ClientMiddlewareFactory):

Callers 1

test_middleware_mappingFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_middleware_mappingFunction · 0.68