github finagle/finch 0.14.0
Finch 0.14

latest releases: v0.34.1, v0.34.0, v0.33.0...
7 years ago

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).

Don't miss a new finch release

NewReleases is sending notifications on new releases.