class documentation

class Interceptor:

Constructor: Interceptor()

View In Hierarchy

Base class for interceptors. Interceptors are classes that can define methods decorated with @intercept to intercept requests at different phases (e.g. pre-processing, post-processing) and for different operations and resource types.

They hold the interceptor handler methods and their metadata, which are registered with the InterceptorManager when the interceptor is instantiated.

Method __init__ Initialize the interceptor and extract its handlers and metadata.
Instance Variable _handlers The list of interceptor handlers defined in this interceptor. This is populated by scanning the class for methods decorated with @intercept and extracting their metadata.
def __init__(self):

Initialize the interceptor and extract its handlers and metadata.

_handlers: list[InterceptorHandlerInfo] =

The list of interceptor handlers defined in this interceptor. This is populated by scanning the class for methods decorated with @intercept and extracting their metadata.