diff options
author | Daniil Cherednik <dan.cherednik@gmail.com> | 2022-11-28 15:38:32 +0300 |
---|---|---|
committer | Daniil Cherednik <dan.cherednik@gmail.com> | 2022-11-28 15:38:32 +0300 |
commit | 9b78acb9998e4a817a21fe60443c7c5d6a06b947 (patch) | |
tree | 9d58018f5d49dbccc1c1e63d0ecc0eacb027d732 /library/cpp | |
parent | 87f7fceed34bcafb8aaff351dd493a35c916986f (diff) | |
download | ydb-9b78acb9998e4a817a21fe60443c7c5d6a06b947.tar.gz |
Ydb stable 22-4-4422.4.44stable-22-4
x-stable-origin-commit: 1a8317bc9b27fc6c8a8453c7938b4b252db85a01
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/grpc/server/grpc_request.h | 5 | ||||
-rw-r--r-- | library/cpp/grpc/server/grpc_request_base.h | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/library/cpp/grpc/server/grpc_request.h b/library/cpp/grpc/server/grpc_request.h index bb389af276..f1beef02b7 100644 --- a/library/cpp/grpc/server/grpc_request.h +++ b/library/cpp/grpc/server/grpc_request.h @@ -179,6 +179,11 @@ public: return Request_; } + NProtoBuf::Message* GetRequestMut() override { + return Request_; + } + + TAuthState& GetAuthState() override { return AuthState_; } diff --git a/library/cpp/grpc/server/grpc_request_base.h b/library/cpp/grpc/server/grpc_request_base.h index fcfce1c181..26afa80c84 100644 --- a/library/cpp/grpc/server/grpc_request_base.h +++ b/library/cpp/grpc/server/grpc_request_base.h @@ -53,6 +53,9 @@ public: //! Get pointer to the request's message. virtual const NProtoBuf::Message* GetRequest() const = 0; + //! Get mutable pointer to the request's message. + virtual NProtoBuf::Message* GetRequestMut() = 0; + //! Get current auth state virtual TAuthState& GetAuthState() = 0; |