diff options
author | Zach Smith <zach@driver.xyz> | 2017-05-11 16:16:31 -0700 |
---|---|---|
committer | Zach Smith <zach@driver.xyz> | 2017-05-24 13:50:04 -0700 |
commit | a81fba794fb41570edaea77ad47d3b96e2e484ec (patch) | |
tree | 844b1d448044eac94b6a1a08b4c990ecce175004 /src | |
parent | 0e1d65445524b9819f701b67e11bebd03121964c (diff) | |
download | driver-core-a81fba794fb41570edaea77ad47d3b96e2e484ec.tar.gz driver-core-a81fba794fb41570edaea77ad47d3b96e2e484ec.tar.bz2 driver-core-a81fba794fb41570edaea77ad47d3b96e2e484ec.zip |
Change signature of RestService#get
Diffstat (limited to 'src')
-rw-r--r-- | src/main/scala/xyz/driver/core/rest.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/scala/xyz/driver/core/rest.scala b/src/main/scala/xyz/driver/core/rest.scala index 3f61246..1f8ddc2 100644 --- a/src/main/scala/xyz/driver/core/rest.scala +++ b/src/main/scala/xyz/driver/core/rest.scala @@ -299,8 +299,8 @@ package rest { protected def jsonEntity(json: JsValue): RequestEntity = HttpEntity(ContentTypes.`application/json`, json.compactPrint) - protected def get(baseUri: Uri, path: String, query: (String, String)*) = - HttpRequest(HttpMethods.GET, endpointUri(baseUri, path, query: _*)) + protected def get(baseUri: Uri, path: String, query: Seq[(String, String)]) = + HttpRequest(HttpMethods.GET, endpointUri(baseUri, path, query)) protected def post(baseUri: Uri, path: String, httpEntity: RequestEntity) = HttpRequest(HttpMethods.POST, endpointUri(baseUri, path), entity = httpEntity) @@ -314,7 +314,7 @@ package rest { protected def endpointUri(baseUri: Uri, path: String) = baseUri.withPath(Uri.Path(path)) - protected def endpointUri(baseUri: Uri, path: String, query: (String, String)*) = + protected def endpointUri(baseUri: Uri, path: String, query: Seq[(String, String)]) = baseUri.withPath(Uri.Path(path)).withQuery(Uri.Query(query: _*)) } |