Closed o-nnerb closed 3 years ago
I would like to add two URL to create a new one, for example:
Url("https://example.com/api/v1") + Url("/settings")
But, I believe that we can add one Url with a string too like that:
func + (_ url: Url, _ complementary: String) -> Url { Url("\(url.value ?? "")\(complementary)") }
Great suggestion, feel free to make a PR. I agree that Url + String and Url + Url would be good.
Url
String
I would like to add two URL to create a new one, for example:
Url("https://example.com/api/v1") + Url("/settings")
But, I believe that we can add one Url with a string too like that:
func + (_ url: Url, _ complementary: String) -> Url { Url("\(url.value ?? "")\(complementary)") }