// vim:set sw=2 ts=2 sts et: #include #include struct SplitUrl { std::string schemehost; std::string portpath; }; std::optional splitUrl(const std::string &url, std::string *error = nullptr);