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

Class HeaderFlightServer

python/pyarrow/tests/test_flight.py:783–790  ·  view source on GitHub ↗

Echo back the per-call hard-coded value.

Source from the content-addressed store, hash-verified

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

Callers 2

test_middleware_rejectFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_middleware_rejectFunction · 0.68