aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
authorDaniil Cherednik <dan.cherednik@gmail.com>2022-11-28 15:38:32 +0300
committerDaniil Cherednik <dan.cherednik@gmail.com>2022-11-28 15:38:32 +0300
commit9b78acb9998e4a817a21fe60443c7c5d6a06b947 (patch)
tree9d58018f5d49dbccc1c1e63d0ecc0eacb027d732 /library/cpp
parent87f7fceed34bcafb8aaff351dd493a35c916986f (diff)
downloadydb-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.h5
-rw-r--r--library/cpp/grpc/server/grpc_request_base.h3
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;