Finch 0.14
HTTP/2 Support
This release brings experimental HTTP/2 support via Finagle 6.43.
As usual, there are two ways enabling it in Finch's applications: via a toggle override or programmatically. Supply the following CLI flag to globally switch each HTTP client/server running in the same process:
-com.twitter.finagle.toggle.flag.overrides=com.twitter.finagle.http.UseHttp2=1.0
Or control the HTTP version on a per-client/per-server basis:
import io.finch._
import com.twitter.finagle.Http
import com.twitter.util.Await
Await.ready(
Http.server
.configuredParams(Http.Http2)
.serve(":8081", Endpoint.lift("foo").toServiceAs[Text.Plain])
)
New Site
Finch's user guide, best practices, and the cookbook are now published within the microsite with all the source code snippets type-checked by tut (thanks @erikwj, see #751).
Other changes
- HTTP
Date
header returned from a Finch service is now conforms the spec format (thanks @rpless, see #752) - New Finch module
finch-generic
now provides some basic machinery allowing for generic derivation of endpoints (thanks @ilya-murzinov, see #716).