<QGrpcInterceptor> - Interceptor types
<QGrpcInterceptor> 헤더 파일은 기본적인 인터셉터 유형을 제공합니다. 더 보기...
| Header: | #include <QGrpcInterceptor> |
| Since: | Qt 6.11 |
유형
(since 6.11) flags | InterceptorCapabilities |
(since 6.11) enum class | InterceptorCapability { Start, InitialMetadata, MessageReceived, WriteMessage, WritesDone, …, Cancel } |
상세 설명
Qt GRPC <QtGrpcInterceptor> 헤더 파일에 일반적으로 그룹화되어 있는 다양한 유형을 제공합니다.
인터셉션 메커니즘에 대한 소개와 인터셉터 인터페이스가 RPC의 수명 주기에 어떻게 관여하는지에 대해서는 ‘Qt GRPC 인터셉터 개요’를 참조하십시오.
Qt GRPC RPC 라이프사이클의 후크 지점으로 다음과 같은 인터셉터 인터페이스를 제공합니다:
| 인터페이스 | 후크 지점 | 방향 | 수정 가능 |
|---|---|---|---|
| QGrpcStartInterceptor | RPC가 시작되기 전 | 발신 | 초기 메시지 객체, 호출 옵션 |
| QGrpcWriteMessageInterceptor | 발신 메시지가 작성되기 전 | 발신 | 메시지 객체 |
| QGrpcWritesDoneInterceptor | 클라이언트가 쓰기 작업이 완료되었음을 알릴 때 | 발신 | — |
| QGrpcCancelInterceptor | RPC가 취소될 때 | 아웃바운드 | — |
| QGrpcInitialMetadataInterceptor | 초기 메타데이터 수신 시 | 수신 | 메타데이터 |
| QGrpcMessageReceivedInterceptor | 메시지 페이로드가 수신될 때 | 수신 | 직렬화된 메시지 데이터 |
| QGrpcTrailingMetadataInterceptor | 후행 메타데이터 수신 시 | 수신 | 메타데이터 |
| QGrpcFinishedInterceptor | RPC가 완료될 때 | 수신 | 최종 상태 |
인터셉터 메커니즘
다음 클래스와 페이지들은 Qt GRPC 인터셉터 메커니즘을 구성합니다:
- QGrpcCancelInterceptor
- QGrpcFinishedInterceptor
- QGrpcInitialMetadataInterceptor
- QGrpcInterceptionContext
- QGrpcInterceptorChain
- QGrpcMessageReceivedInterceptor
- QGrpcStartInterceptor
- QGrpcTrailingMetadataInterceptor
- QGrpcWriteMessageInterceptor
- QGrpcWritesDoneInterceptor
- Qt GRPC Interceptors Overview
- QGrpcStartInterceptor::Continuation
- InterceptorCapability
- InterceptorCapabilities
유형 설명서
[since 6.11] enum class InterceptorCapability
[since 6.11] flags InterceptorCapabilities
인터셉터가 지원하는 인터셉션 후크 지점을 지정합니다.
Qt GRPC InterceptorCapability 값을 사용하여 인터셉터가 제공하는 인터셉션 훅 지점을 설명합니다.
단일 인터셉터 클래스는 여러 인터셉터 인터페이스(예: ` QGrpcStartInterceptor ` 및 ` QGrpcFinishedInterceptor`)를 구현할 수 있으며, 따라서 여러 기능을 지원할 수 있습니다.
| 상수 | 값 | 설명 |
|---|---|---|
InterceptorCapability::Start | 0x01 | 인터셉터는 QGrpcStartInterceptor 를 구현합니다. |
InterceptorCapability::InitialMetadata | 0x02 | 인터셉터는 QGrpcInitialMetadataInterceptor 를 구현합니다. |
InterceptorCapability::MessageReceived | 0x04 | 이 인터셉터는 QGrpcMessageReceivedInterceptor 를 구현합니다.이 인터셉터는 를 구현합니다. |
InterceptorCapability::WriteMessage | 0x08 | 이 인터셉터는 QGrpcWriteMessageInterceptor 를 구현합니다. |
InterceptorCapability::WritesDone | 0x10 | 인터셉터는 QGrpcWritesDoneInterceptor 를 구현합니다. |
InterceptorCapability::TrailingMetadata | 0x20 | 인터셉터는 QGrpcTrailingMetadataInterceptor 을 구현합니다. |
InterceptorCapability::Finished | 0x40 | 인터셉터는 ` QGrpcFinishedInterceptor`를 구현합니다. |
InterceptorCapability::Cancel | 0x80 | 이 인터셉터는 ` QGrpcCancelInterceptor`를 구현합니다. |
이 열거형은 Qt 6.11에서 도입되었습니다.
InterceptorCapabilities 유형은 QFlags<InterceptorCapability>에 대한 typedef입니다. 이 유형은 InterceptorCapability 값들의 OR 조합을 저장합니다.
© 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.