Public Member Functions | Private Attributes | List of all members
request_header_validator_interceptor.RequestHeaderValidatorInterceptor Class Reference
Inheritance diagram for request_header_validator_interceptor.RequestHeaderValidatorInterceptor:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, header, value, code, details)
 
def intercept_service (self, continuation, handler_call_details)
 

Private Attributes

 _header
 
 _terminator
 
 _value
 

Detailed Description

Definition at line 27 of file request_header_validator_interceptor.py.

Constructor & Destructor Documentation

◆ __init__()

def request_header_validator_interceptor.RequestHeaderValidatorInterceptor.__init__ (   self,
  header,
  value,
  code,
  details 
)

Definition at line 29 of file request_header_validator_interceptor.py.

Member Function Documentation

◆ intercept_service()

def request_header_validator_interceptor.RequestHeaderValidatorInterceptor.intercept_service (   self,
  continuation,
  handler_call_details 
)
Intercepts incoming RPCs before handing them over to a handler.

Args:
  continuation: A function that takes a HandlerCallDetails and
    proceeds to invoke the next interceptor in the chain, if any,
    or the RPC handler lookup logic, with the call details passed
    as an argument, and returns an RpcMethodHandler instance if
    the RPC is considered serviced, or None otherwise.
  handler_call_details: A HandlerCallDetails describing the RPC.

Returns:
  An RpcMethodHandler with which the RPC may be serviced if the
  interceptor chooses to service this RPC, or None otherwise.

Reimplemented from grpc.ServerInterceptor.

Definition at line 34 of file request_header_validator_interceptor.py.

Member Data Documentation

◆ _header

request_header_validator_interceptor.RequestHeaderValidatorInterceptor._header
private

Definition at line 30 of file request_header_validator_interceptor.py.

◆ _terminator

request_header_validator_interceptor.RequestHeaderValidatorInterceptor._terminator
private

Definition at line 32 of file request_header_validator_interceptor.py.

◆ _value

request_header_validator_interceptor.RequestHeaderValidatorInterceptor._value
private

Definition at line 31 of file request_header_validator_interceptor.py.


The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:43