pyarrow.flight.ServerCallContext

class pyarrow.flight.ServerCallContext

Bases: _Weakrefable

Per-call state/context.

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

get_middleware(self, key)

Get a middleware instance by key.

is_cancelled(self)

Check if the current RPC call has been canceled by the client.

peer(self)

Get the address of the peer.

peer_identity(self)

Get the identity of the authenticated peer.

get_middleware(self, key)

Get a middleware instance by key.

Returns None if the middleware was not found.

is_cancelled(self)

Check if the current RPC call has been canceled by the client.

peer(self)

Get the address of the peer.

peer_identity(self)

Get the identity of the authenticated peer.

May be the empty string.