pyarrow.flight.ServerCallContext#

class pyarrow.flight.ServerCallContext#

Bases: _Weakrefable

Per-call state/context.

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

add_header(self, key, value)

Add a response header.

add_trailer(self, key, value)

Add a response trailer.

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.

add_header(self, key, value)#

Add a response header.

add_trailer(self, key, value)#

Add a response trailer.

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.