refactor: Extract Send() and Receive() into HTTPRemoteClient from HTTPServer

This commit is contained in:
Hodlinator
2026-07-28 10:45:10 +02:00
parent 6d9b61d4f8
commit a1183c02aa
2 changed files with 62 additions and 50 deletions

View File

@@ -580,6 +580,9 @@ public:
HTTPRemoteClient(const HTTPRemoteClient&) = delete;
HTTPRemoteClient& operator=(const HTTPRemoteClient&) = delete;
void Send(const HTTPResponse& res, std::span<const std::byte> reply_body, bool keep_alive) EXCLUSIVE_LOCKS_REQUIRED(!m_send_mutex, !m_sock_mutex);
void Receive() EXCLUSIVE_LOCKS_REQUIRED(!m_sock_mutex);
bool MaybeDisconnect(std::chrono::time_point<SteadyClock> now, std::chrono::seconds rpcservertimeout, bool disconnect_all);
/**