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

Class HeadersTrailersFlightServer

python/pyarrow/tests/test_flight.py:2694–2704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2692 """Ensure that server-sent headers/trailers make it through."""
2693
2694 class HeadersTrailersFlightServer(FlightServerBase):
2695 def get_flight_info(self, context, descriptor):
2696 context.add_header("x-header", "header-value")
2697 context.add_header("x-header-bin", "header\x01value")
2698 context.add_trailer("x-trailer", "trailer-value")
2699 context.add_trailer("x-trailer-bin", "trailer\x01value")
2700 return flight.FlightInfo(
2701 pa.schema([]),
2702 descriptor,
2703 []
2704 )
2705
2706 class HeadersTrailersMiddlewareFactory(ClientMiddlewareFactory):
2707 def __init__(self):

Callers 1

test_headers_trailersFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_headers_trailersFunction · 0.68