/
githubmirror
/
nbs
Обзор
Документация
Войти
/
githubmirror
/
nbs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
cloud/blockstore/libs/notify/impl/https.h
36 строк
765 B
Georg-0001
[Blockstore] Notify service refactoring to further support new notification format (#4007)
08 авг 2025, 12:30
Не верифицирован
08 авг 2025, 12:30
311fc3f
Код
Авторство
О чём код?
#pragma once #include <cloud/storage/core/libs/iam/iface/client.h> #include <util/generic/string.h> #include <functional> #include <memory> namespace NCloud::NBlockStore::NNotify { //////////////////////////////////////////////////////////////////////////////// using THttpsCallback = std::function<void(int code, const TString& data)>; class THttpsClient { public: THttpsClient(); ~THttpsClient(); public: void LoadCaCerts(const TString& path); void Post( const TString& endpoint, const TString& data, const TString& contentType, const TString& authHeader, const THttpsCallback& callback); private: class TImpl; std::unique_ptr<TImpl> Impl; }; } // namespace NCloud::NBlockStore::NNotify