package streaming
- Alphabetic
- Public
- All
Value Members
-
object
Main
A simple Finch application featuring very basic,
Buf
-based streaming support.A simple Finch application featuring very basic,
Buf
-based streaming support.There are three endpoints in this example:
totalSum
- streaming request 2.sumTo
- streaming response 3.sumSoFar
- end-to-end (request - response) streaming 4.examples
- streaming response of examples objects
Use the following sbt command to run the application.
$ sbt 'examples/runMain io.finch.streaming.Main'
Use the following HTTPie/curl commands to test endpoints.
$ curl -X POST --header "Transfer-Encoding: chunked" -d 4 localhost:8081/totalSum $ http --stream POST :8081/sumTo/3 $ curl -X POST --header "Transfer-Encoding: chunked" -d 4 localhost:8081/sumSoFar $ curl -X POST --header "Transfer-Encoding: chunked" -d 3 localhost:8081/sumSoFar $ http --stream GET :8081/examples/3
This is the API documentation for finch
Finch is a thin layer of purely functional basic blocks atop of [Finagle][finagle] for building composable HTTP APIs. Its mission is to provide the developers simple and robust HTTP primitives being as close as possible to the bare metal Finagle API.
Finch uses multi-project structure and contains of the following _modules_:
Please refer to the documentation for a more detailed introduction to the library.