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

Class HeadersTrailersFlightServer

python/pyarrow/tests/test_flight.py:2732–2742  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2730 """Ensure that server-sent headers/trailers make it through."""
2731
2732 class HeadersTrailersFlightServer(FlightServerBase):
2733 def get_flight_info(self, context, descriptor):
2734 context.add_header("x-header", "header-value")
2735 context.add_header("x-header-bin", "header\x01value")
2736 context.add_trailer("x-trailer", "trailer-value")
2737 context.add_trailer("x-trailer-bin", "trailer\x01value")
2738 return flight.FlightInfo(
2739 pa.schema([]),
2740 descriptor,
2741 []
2742 )
2743
2744 class HeadersTrailersMiddlewareFactory(ClientMiddlewareFactory):
2745 def __init__(self):

Callers 1

test_headers_trailersFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_headers_trailersFunction · 0.68