0.1.dev2184+g1e0cbe7.d20250401

flytekit.clients.grpc_utils.default_metadata_interceptor

Directory

Classes

Class Description
DefaultMetadataInterceptor Affords intercepting unary-unary invocations.

flytekit.clients.grpc_utils.default_metadata_interceptor.DefaultMetadataInterceptor

Affords intercepting unary-unary invocations.

Methods

Method Description
intercept_unary_stream() Handles a stream call and inject default metadata.
intercept_unary_unary() Intercepts unary calls and inject default metadata.

intercept_unary_stream()

def intercept_unary_stream(
    continuation: typing.Callable,
    client_call_details: grpc.ClientCallDetails,
    request: typing.Any,
)

Handles a stream call and inject default metadata

Parameter Type
continuation typing.Callable
client_call_details grpc.ClientCallDetails
request typing.Any

intercept_unary_unary()

def intercept_unary_unary(
    continuation: typing.Callable,
    client_call_details: grpc.ClientCallDetails,
    request: typing.Any,
)

Intercepts unary calls and inject default metadata

Parameter Type
continuation typing.Callable
client_call_details grpc.ClientCallDetails
request typing.Any