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

Class MultiHeaderFlightServer

python/pyarrow/tests/test_flight.py:795–801  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by 1