https://github.com/samdvr/finagle-client
Finagle HttpClient wrapper
https://github.com/samdvr/finagle-client
finagle http-client
Last synced: 2 months ago
JSON representation
Finagle HttpClient wrapper
- Host: GitHub
- URL: https://github.com/samdvr/finagle-client
- Owner: samdvr
- Created: 2018-03-04T20:08:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-04T20:53:25.000Z (over 7 years ago)
- Last Synced: 2025-03-28T21:42:44.154Z (6 months ago)
- Topics: finagle, http-client
- Language: Scala
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Finagle Client Wrapper
# Usage
```Scala
import com.dragon._
import Dragon._val client: Service[http.Request, http.Response] = Http.newService("localhost:8080")
client.get("/hi")
// res0: com.twitter.util.Future[com.twitter.finagle.http.Response] = Promise@2116358064(state=Transforming(WaitQueue(size=0),Future@172928771(depth=2,parent=Promise@val payload: String = ???
client.post("ping", payload)
// res1: com.twitter.util.Future[com.twitter.finagle.http.Response] = Promise@2045134898(state=Transforming(WaitQueue(size=0),Future@708131124(depth=2,parent=Promise@81223238(sta```