Finatra v19.7.0 Release Notes
Release Date: 2019-07-18 // almost 5 years ago-
โ Added
โ finatra-kafka-streams: Adding test/sample for
FinatraDslWindowedAggregations.aggregate
. ae433fc๐ finatra-jackson: Add
com.twitter.util.Time
deserializer withJsonFormat
support. ed3d666๐ Changed
โก๏ธ finatra-kafka: BUILD file update compile and runtime deps. 8241cd7
๐ finatra-httpclient: introduce new
HttpClientModuleTrait
and deprecateHttpClientModule
.
TheHttpClientModule
has been modified to extend fromHttpClientModuleTrait
to allow
๐ for bridging the two implementations.c.t.f.httpclient.RichHttpClient
has also been deprecated
๐ง as part of this change. The newHttpClientModuleTrait
allows for direct configuration of the
underlingc.t.finagle.Http.Client
. The newHttpClientModuleTrait
does not provide any
0๏ธโฃ default bindings, so it is up to users to supply them - this allows for custom binding
annotations and binding multipleHttpClient
s, which was not previously possible with
HttpClientModule
. fe0c94aTo migrate,
class MyHttpClientModule extends HttpClientModule { override val dest = "flag!mydest" override val sslHostname = Some("sslHost") }
becomes
class MyHttpClientModule extends HttpClientModuleTrait { override val dest = "flag!mydest" override val label = "myhttpclient" val sslHostname = "sslHost" // we only override in this example for TLS configuration with the `sslHostname` override def configureClient( injector: Injector, client: Http.Client ): Http.Client = client.withTls(sslHostname) @Singleton @Provides final def provideHttpClient( injector: Injector, statsReceiver: StatsReceiver, mapper: FinatraObjectMapper ): HttpClient = newHttpClient(injector, statsReceiver, mapper) // Note that `provideHttpClient` no longer needs an injected `Service[Request, Response]` so // the following is only needed if you require a `Service[Request, Response]` elsewhere: @Singleton @Provides final def provideHttpService( injector: Injector, statsReceiver: StatsReceiver ): Service[Request, Response] = newService(injector, statsReceiver) }