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

Class HeaderServerMiddlewareFactory

python/pyarrow/tests/test_flight.py:778–782  ·  view source on GitHub ↗

Expose a per-call hard-coded value to the RPC method body.

Source from the content-addressed store, hash-verified

776
777
778class HeaderServerMiddlewareFactory(ServerMiddlewareFactory):
779 """Expose a per-call hard-coded value to the RPC method body."""
780
781 def start_call(self, info, headers):
782 return HeaderServerMiddleware("right value")
783
784
785class HeaderFlightServer(FlightServerBase):

Callers 1

Calls

no outgoing calls

Tested by 1