1 #ifndef PICHI_COMMON_URI_HPP 2 #define PICHI_COMMON_URI_HPP 3 4 #include <string_view> 5 6 namespace pichi { 7 8 struct Uri { 9 Uri(std::string_view); 10 11 std::string_view all_; 12 std::string_view scheme_; 13 std::string_view host_; 14 std::string_view port_; 15 std::string_view suffix_; 16 std::string_view path_; 17 std::string_view query_; 18 }; 19 20 struct HostAndPort { 21 HostAndPort(std::string_view); 22 23 std::string_view host_; 24 std::string_view port_; 25 }; 26 27 } // namespace pichi 28 29 #endif // PICHI_COMMON_URI_HPP 30