Initial commit

This commit is contained in:
faumaray committed 2026-01-18 18:22:09 +03:00
commit f6c5bcca39
52 files changed
+55449

No files matched your search

@@ -0,0 +1,28 @@
#pragma once
#include <chrono>
#include <optional>
#include <string>
namespace Spotify {
struct CallbackResult {
std::string code;
std::string state;
std::string error;
};
class HttpCallbackServer {
public:
HttpCallbackServer(std::string host, uint16_t port, std::string path);
// Wait for one callback request or timeout. Returns std::nullopt on timeout.
std::optional<CallbackResult> WaitForCallback(std::chrono::milliseconds timeout);
private:
std::string m_Host;
uint16_t m_Port;
std::string m_Path;
};
} // namespace ts6bot