Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- POST / HTTP/1.1
- Host: hoge.org
- Content-Type: application/x-www-form-urlencoded
- username=myid&password=mypw
- //↑boiler plate↑
- val pipe = (
- addHeader(Host("hoge.org"))
- ~> addHeader(`Content-Type`(`application/x-www-form-urlencoded`))
- ~> sendReceive.apply
- )
- pipe(Post("/")) onComplete {
- case Success(res) => println("okpk")
- case Failure(exc) => println(exc)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement