mirror of
https://github.com/NixOS/nix.git
synced 2025-11-18 00:12:43 +01:00
ParsedURL: Remove url field
This prevents a 'url' field that is out of sync with the other fields. You can use to_string() to get the full URL.
This commit is contained in:
parent
a0901e5588
commit
f705ce7f9a
8 changed files with 25 additions and 43 deletions
|
|
@ -7,9 +7,8 @@ namespace nix {
|
|||
|
||||
struct ParsedURL
|
||||
{
|
||||
std::string url;
|
||||
/// URL without query/fragment
|
||||
std::string base;
|
||||
std::string base; // FIXME: remove
|
||||
std::string scheme;
|
||||
std::optional<std::string> authority;
|
||||
std::string path;
|
||||
|
|
@ -26,6 +25,8 @@ struct ParsedURL
|
|||
ParsedURL canonicalise();
|
||||
};
|
||||
|
||||
std::ostream & operator << (std::ostream & os, const ParsedURL & url);
|
||||
|
||||
MakeError(BadURL, Error);
|
||||
|
||||
std::string percentDecode(std::string_view in);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue