1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #pragma once
- #include "fwd.h"
- #include <yt/cpp/mapreduce/http/http_client.h>
- #include <yt/cpp/mapreduce/interface/fwd.h>
- #include <util/generic/maybe.h>
- namespace NYT::NDetail {
- ////////////////////////////////////////////////////////////////////////////////
- struct TResponseInfo
- {
- TString RequestId;
- TString Response;
- int HttpCode = 0;
- };
- ////////////////////////////////////////////////////////////////////////////////
- struct TRequestConfig
- {
- NHttpClient::THttpConfig HttpConfig;
- bool IsHeavy = false;
- };
- ////////////////////////////////////////////////////////////////////////////////
- NHttpClient::IHttpResponsePtr RequestWithoutRetry(
- const TClientContext& context,
- TMutationId& mutationId,
- THttpHeader& header,
- TMaybe<TStringBuf> body = {},
- const TRequestConfig& config = {});
- ////////////////////////////////////////////////////////////////////////////////
- } // namespace NYT::NDetail
|