diff options
author | dcherednik <dcherednik@ydb.tech> | 2022-10-26 14:13:07 +0300 |
---|---|---|
committer | dcherednik <dcherednik@ydb.tech> | 2022-10-26 14:13:07 +0300 |
commit | 71b018f828ad9f35f0b391747dd7eaa200793d1d (patch) | |
tree | a72222a98aa62b30d83638b0f7714c504cca229e /library/cpp | |
parent | 5e7625c7515775f88c42a8581489fb9efc993c3d (diff) | |
download | ydb-71b018f828ad9f35f0b391747dd7eaa200793d1d.tar.gz |
ydb format support for session actor.
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 b79a0d94fa..a3a5c291f0 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 8827d028b3..105f9515d0 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; |