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

Class MultiHeaderFlightServer

python/pyarrow/tests/test_flight.py:793–799  ·  view source on GitHub ↗

Test sending/receiving multiple (binary-valued) headers.

Source from the content-addressed store, hash-verified

791
792
793class MultiHeaderFlightServer(FlightServerBase):
794 """Test sending/receiving multiple (binary-valued) headers."""
795
796 def do_action(self, context, action):
797 middleware = context.get_middleware("test")
798 headers = repr(middleware.client_headers).encode("utf-8")
799 return [headers]
800
801
802class SelectiveAuthServerMiddlewareFactory(ServerMiddlewareFactory):

Callers 1

Calls

no outgoing calls

Tested by 1