Advertisement
Guest User

Untitled

a guest
Sep 19th, 2014
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. POST / HTTP/1.1
  2. Host: hoge.org
  3. Content-Type: application/x-www-form-urlencoded
  4.  
  5. username=myid&password=mypw
  6.  
  7. //↑boiler plate↑
  8. val pipe = (
  9. addHeader(Host("hoge.org"))
  10. ~> addHeader(`Content-Type`(`application/x-www-form-urlencoded`))
  11. ~> sendReceive.apply
  12. )
  13. pipe(Post("/")) onComplete {
  14. case Success(res) => println("okpk")
  15. case Failure(exc) => println(exc)
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement