aboutsummaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/http/context.h
blob: 3bae208279b5599c2c89bd34f8c080af71256e5d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#pragma once

#include "fwd.h"

#include <yt/cpp/mapreduce/interface/common.h>
#include <yt/cpp/mapreduce/interface/config.h>
#include <yt/cpp/mapreduce/interface/public.h>


namespace NYT {

///////////////////////////////////////////////////////////////////////////////

struct TClientContext
{
    TString ServerName;
    TString Token;
    TMaybe<TString> ImpersonationUser;
    NAuth::IServiceTicketAuthPtrWrapperPtr ServiceTicketAuth;
    NHttpClient::IHttpClientPtr HttpClient;
    bool TvmOnly = false;
    bool UseTLS = false;
    TConfigPtr Config = TConfig::Get();
    TMaybe<TString> ProxyAddress;
};

bool operator==(const TClientContext& lhs, const TClientContext& rhs);

////////////////////////////////////////////////////////////////////////////////

} // namespace NYT