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

Class HeaderServerMiddlewareFactory

python/pyarrow/tests/test_flight.py:776–780  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by 1