Skip to content

Instantly share code, notes, and snippets.

@rodolfo42
Created May 30, 2015 02:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rodolfo42/b61f01bd321070a31c32 to your computer and use it in GitHub Desktop.
Save rodolfo42/b61f01bd321070a31c32 to your computer and use it in GitHub Desktop.
Http RequestBuilder is not correctly configured
name := "request-builder"
scalaVersion := "2.11.6"
libraryDependencies ++= Seq(
"com.twitter" %% "finagle-core" % "6.25.0",
"com.twitter" %% "finagle-http" % "6.25.0"
)
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