diff --git a/zio-http/shared/src/main/scala/zio/http/URL.scala b/zio-http/shared/src/main/scala/zio/http/URL.scala index 0a4a4aecde..bc26378837 100644 --- a/zio-http/shared/src/main/scala/zio/http/URL.scala +++ b/zio-http/shared/src/main/scala/zio/http/URL.scala @@ -93,6 +93,8 @@ final case class URL( hash } + override def toString(): String = encode + def host: Option[String] = kind match { case URL.Location.Relative => None case abs: URL.Location.Absolute => Option(abs.host)