a simple multithreaded webserver
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
467 B

  1. #pragma once
  2. #include <string>
  3. namespace pEp
  4. {
  5. struct URL
  6. {
  7. std::string schema; // http/https. parse_url() returns it always in lowercase
  8. std::string username;
  9. std::string password;
  10. std::string host;
  11. unsigned port = 0; // port 0 means: default port: 80 for HTTP, 443 for HTTPS
  12. std::string path_and_query = "/"; // no need to split them down anymore
  13. std::string fragment;
  14. };
  15. URL parse_url(const char* begin, const char* end);
  16. } // end of namespace pEp