Created
May 30, 2015 02:29
-
-
Save rodolfo42/b61f01bd321070a31c32 to your computer and use it in GitHub Desktop.
Http RequestBuilder is not correctly configured
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name := "request-builder" | |
scalaVersion := "2.11.6" | |
libraryDependencies ++= Seq( | |
"com.twitter" %% "finagle-core" % "6.25.0", | |
"com.twitter" %% "finagle-http" % "6.25.0" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Test extends App { | |
val url = "http://google.com/search" | |
val query = ("q", "finagle") | |
val request = com.twitter.finagle.http.RequestBuilder() | |
.url(url) | |
.addFormElement(query) | |
.buildGet() | |
println(request) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment