aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorIryna Svitlychenko <isvitlychenko@ebay.com>2017-11-11 16:34:33 +0000
committerIryna Svitlychenko <isvitlychenko@ebay.com>2017-11-11 16:34:33 +0000
commit533acb07ad71a6f43429e6ee92adf77d2b115ce4 (patch)
tree2138c84692bc72e5a404a4c329fb8aa44ed0bd84 /core
parent9635a25aeead9d56e9f8b34518df19746e81967d (diff)
downloadsttp-533acb07ad71a6f43429e6ee92adf77d2b115ce4.tar.gz
sttp-533acb07ad71a6f43429e6ee92adf77d2b115ce4.tar.bz2
sttp-533acb07ad71a6f43429e6ee92adf77d2b115ce4.zip
extending apply method for URIs containing scheme, host and path
Diffstat (limited to 'core')
-rw-r--r--core/src/main/scala/com/softwaremill/sttp/Uri.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/main/scala/com/softwaremill/sttp/Uri.scala b/core/src/main/scala/com/softwaremill/sttp/Uri.scala
index 9945179..a8403d7 100644
--- a/core/src/main/scala/com/softwaremill/sttp/Uri.scala
+++ b/core/src/main/scala/com/softwaremill/sttp/Uri.scala
@@ -193,6 +193,8 @@ object Uri {
Uri(scheme, None, host, Some(port), Vector.empty, Vector.empty, None)
def apply(scheme: String, host: String, port: Int, path: Seq[String]): Uri =
Uri(scheme, None, host, Some(port), path, Vector.empty, None)
+ def apply(scheme: String, host: String, path: Seq[String]): Uri =
+ Uri(scheme, None, host, None, path, Vector.empty, None)
sealed trait QueryFragment
object QueryFragment {