Qt GRPC 인터셉터

인터셉션 메커니즘과 인터셉터 인터페이스가 RPC 라이프사이클에 어떻게 관여하는지에 대한 개요는Qt GRPC 의 ‘인터셉터 개요’를 참조하십시오.

Qt GRPC 다음과 같은 인터셉터 인터페이스를 RPC 라이프사이클의 후크 지점으로 제공합니다:

인터페이스후크 지점방향수정 가능
QGrpcStartInterceptorRPC가 시작되기 전발신초기 메시지 객체, 호출 옵션
QGrpcWriteMessageInterceptor발신 메시지가 작성되기 전발신메시지 객체
QGrpcWritesDoneInterceptor클라이언트가 쓰기 작업이 완료되었음을 알릴 때발신—
QGrpcCancelInterceptorRPC가 취소될 때아웃바운드—
QGrpcInitialMetadataInterceptor초기 메타데이터 수신 시수신메타데이터
QGrpcMessageReceivedInterceptor메시지 페이로드 수신 시수신직렬화된 메시지 데이터
QGrpcTrailingMetadataInterceptor후행 메타데이터 수신 시수신메타데이터
QGrpcFinishedInterceptorRPC가 완료될 때수신최종 상태

다음 클래스와 페이지는 Qt GRPC 인터셉터 메커니즘을 구성합니다:

QGrpcCancelInterceptor

RPC에 대한 취소 요청을 가로챕니다

QGrpcFinishedInterceptor

RPC의 완료 상태를 가로챈다

QGrpcInitialMetadataInterceptor

RPC의 초기 메타데이터를 가로챕니다

QGrpcInterceptionContext

인터셉터 콜백에 컨텍스트 정보를 제공합니다

QGrpcInterceptorChain

인터셉터 시퀀스를 저장하고 관리합니다

QGrpcMessageReceivedInterceptor

RPC에 대한 수신 메시지 페이로드를 가로챈다

QGrpcStartInterceptor

RPC의 시작을 가로챈다

QGrpcTrailingMetadataInterceptor

RPC의 후행 메타데이터를 가로챕니다

QGrpcWriteMessageInterceptor

RPC를 위해 작성된 발신 메시지를 가로챕니다

QGrpcWritesDoneInterceptor

RPC에 대한 메시지 쓰기 완료를 가로챕니다

Qt GRPC Interceptors Overview

Qt GRPC 인터셉터 메커니즘에 대한 개요를 제공합니다.

QGrpcStartInterceptor::Continuation

인터셉트된 RPC가 진행되어야 하는지 여부를 제어합니다

InterceptorCapability

인터셉터가 지원하는 인터셉션 후크 지점을 지정합니다

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.