diff options
author | annashest18 <annashest18@yandex-team.com> | 2023-10-22 13:19:53 +0300 |
---|---|---|
committer | annashest18 <annashest18@yandex-team.com> | 2023-10-22 13:40:13 +0300 |
commit | 24a44df2ab01109cefd64d4bfad05c66e7ebd2af (patch) | |
tree | 1ec1ca95a2a8aceaa383fde2e19e61db9ab4fe02 /yt/cpp/mapreduce/http/http.h | |
parent | a991b019f74cbfe6efb40c3b68b46a1ac2a9bd09 (diff) | |
download | ydb-24a44df2ab01109cefd64d4bfad05c66e7ebd2af.tar.gz |
add using http-proxy for reading table from YT
add using http-proxy for reading table from YT
Нам нужна возможность ходить в YT через HTTP proxy для чтения таблиц, используя С++ клиент не из контура Яндекса, к сожалению, сейчас такой возможности нет. В этом ПР черновик изменения, которого нам достаточно
https://a.yandex-team.ru/review/4676436/details - тут это же изменение в YT + коммит с тем, как мы планируем использовать
Diffstat (limited to 'yt/cpp/mapreduce/http/http.h')
-rw-r--r-- | yt/cpp/mapreduce/http/http.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/yt/cpp/mapreduce/http/http.h b/yt/cpp/mapreduce/http/http.h index ee8783088db..8bfa00de1dc 100644 --- a/yt/cpp/mapreduce/http/http.h +++ b/yt/cpp/mapreduce/http/http.h @@ -57,6 +57,8 @@ public: bool HasMutationId() const; void SetToken(const TString& token); + void SetProxyAddress(const TString& proxyAddress); + void SetHostPort(const TString& hostPort); void SetImpersonationUser(const TString& impersonationUser); void SetServiceTicket(const TString& ticket); @@ -70,7 +72,7 @@ public: void SetResponseCompression(const TString& compression); TString GetCommand() const; - TString GetUrl() const; + TString GetUrl(bool needProxy = false) const; TString GetHeaderAsString(const TString& hostName, const TString& requestId, bool includeParameters = true) const; NHttp::THeadersPtrWrapper GetHeader(const TString& hostName, const TString& requestId, bool includeParameters) const; @@ -89,6 +91,8 @@ private: TString Token; TString ServiceTicket; TNode Attributes; + TString ProxyAddress; + TString HostPort; private: TMaybe<TFormat> InputFormat = TFormat::YsonText(); |