webui.h 454 B

1234567891011121314151617181920212223242526
  1. //
  2. // Created by xcbosa on 2023/1/28.
  3. //
  4. #pragma once
  5. #include <vector>
  6. #include <map>
  7. #include <string>
  8. #include <iostream>
  9. #include <thread>
  10. #include <mutex>
  11. #include "webuiconf.h"
  12. using namespace std;
  13. #define assertx(expr, message) \
  14. if (!(expr)) { std::cerr << (message) << std::endl; exit(-1); }
  15. namespace xc {
  16. constexpr int urlRequestBuffSize = 65536;
  17. namespace utils {
  18. string contentsOfTextFile(string filePath);
  19. }
  20. }