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

Class HeaderFlightServer

python/pyarrow/tests/test_flight.py:785–792  ·  view source on GitHub ↗

Echo back the per-call hard-coded value.

Source from the content-addressed store, hash-verified

783
784
785class HeaderFlightServer(FlightServerBase):
786 """Echo back the per-call hard-coded value."""
787
788 def do_action(self, context, action):
789 middleware = context.get_middleware("test")
790 if middleware:
791 return [middleware.special_value.encode()]
792 return [b""]
793
794
795class MultiHeaderFlightServer(FlightServerBase):

Callers 2

test_middleware_rejectFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_middleware_rejectFunction · 0.68