diff options
author | Sergey Polovko <sergey@polovko.me> | 2022-02-10 16:47:03 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:03 +0300 |
commit | 2e714b5ebd40a1f4cc31c27f1ad6e49ca6d895f5 (patch) | |
tree | b83306b6e37edeea782e9eed673d89286c4fef35 /library/cpp/grpc/server/grpc_request_base.h | |
parent | 3e0b762a82514bac89c1dd6ea7211e381d8aa248 (diff) | |
download | ydb-2e714b5ebd40a1f4cc31c27f1ad6e49ca6d895f5.tar.gz |
Restoring authorship annotation for Sergey Polovko <sergey@polovko.me>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/grpc/server/grpc_request_base.h')
-rw-r--r-- | library/cpp/grpc/server/grpc_request_base.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/grpc/server/grpc_request_base.h b/library/cpp/grpc/server/grpc_request_base.h index b61cf553aa..fcfce1c181 100644 --- a/library/cpp/grpc/server/grpc_request_base.h +++ b/library/cpp/grpc/server/grpc_request_base.h @@ -9,7 +9,7 @@ namespace grpc { class ByteBuffer; } -namespace NGrpc { +namespace NGrpc { extern const char* GRPC_USER_AGENT_HEADER; @@ -30,7 +30,7 @@ struct TAuthState { //! An interface that may be used to limit concurrency of requests -class IGRpcRequestLimiter: public TThrRefBase { +class IGRpcRequestLimiter: public TThrRefBase { public: virtual bool IncRequest() = 0; virtual void DecRequest() = 0; @@ -39,7 +39,7 @@ public: using IGRpcRequestLimiterPtr = TIntrusivePtr<IGRpcRequestLimiter>; //! State of current request -class IRequestContextBase: public TThrRefBase { +class IRequestContextBase: public TThrRefBase { public: enum class EFinishStatus { OK, @@ -72,12 +72,12 @@ public: //! Returns deadline (server epoch related) if peer set it on its side, or Instanse::Max() otherwise virtual TInstant Deadline() const = 0; - - //! Returns available peer metadata keys - virtual TSet<TStringBuf> GetPeerMetaKeys() const = 0; - + + //! Returns available peer metadata keys + virtual TSet<TStringBuf> GetPeerMetaKeys() const = 0; + //! Returns peer optional metavalue - virtual TVector<TStringBuf> GetPeerMetaValues(TStringBuf key) const = 0; + virtual TVector<TStringBuf> GetPeerMetaValues(TStringBuf key) const = 0; //! Returns request compression level virtual grpc_compression_level GetCompressionLevel() const = 0; @@ -113,4 +113,4 @@ public: virtual bool SslServer() const = 0; }; -} // namespace NGrpc +} // namespace NGrpc |