Releases: BenWhitehead/finch-server
v0.9.1
Introduce two new flags to allow the configuration of the interface as well as port that the http/https servers will bind to.
New Flags
-io.github.benwhitehead.finch.httpInterface=:7070 : The TCP Interface and port for the http server {[<hostname/ip>]:port}. (Set to empty value to disable)
-io.github.benwhitehead.finch.httpsInterface= : The TCP Interface and port for the https server {[<hostname/ip>]:port}. Requires -io.github.benwhitehead.finch.certificatePath and -io.github.benwhitehead.finch.keyPath to be set. (Set to empty value to disable)
Breaking Change
The old flags io.github.benwhitehead.finch.httpPort
and io.github.benwhitehead.finch.httpsPort
have been replaced by the new interface args.
Updating your flags
If you do not need to specify the ip address for the server to bind to and want to continue binding to 0.0.0.0
then you need only specify the "port half" of the interface. For example, if you wanted your https server to listen on port 443 you would specify -io.github.benwhitehead.finch.httpsInterface=:443
v0.9.0
Refactor to support Finch 0.9.x
Simplified many things due to them being absorbed into Finch itself
and/or the pattern changing.
Update version of dependencies:
- finch-core 0.9.2
- finagle-http 6.31.0
- finagle-stats 6.31.0
- twitter-server 1.16.0
Remove dependencies:
- finch-json
Remove Scala 2.10 support
v0.7.3
Fixed a small regression in the format of the stats filter. All http methods are now back to the upper case spellings.
v0.7.2
Resolve several issues that improve the feature set of finch-server
Resolved Issues:
- #2 Add a counter to all routes
- #5 Add flag to enable/disable access logging rather than relying on log level filtering.
- #7 Add counters for exceptions that are handled by
HandleExceptions
- #10 Add counter to HandleExceptions so that when an unhandled exception is encountered a counter for the excepitons class name will be incremented.
- #11 Improve readme
v0.7.1
Fixed a bug where finch-server couldn't compile when a custom request type was used with the new request features built into finch 0.4.0.
v0.7.0
Update to version 0.4.0 of all finch libraries. This change removes the Jackson support that originally only existed in this project, we now rely on the Jackson support provided by upstream finch.
Noteworthy changes
- Jackson Serialization and Deserialization is now applied using the the EncodeResponse and DecodeRequest that was added in finch 0.4.0.
v0.6.0
Update following libraries:
- finch -> finch-core 0.3.0
- finagle-http -> finagle-httpx 6.24.0
- finagle-stats -> finagle-stats 6.24.0
- slf4j-* -> slf4j-* 1.7.10
All code updated to be inline with new versions of finch-core
and finagle-httpx
.
Noteworthy changes:
- Removed all Body readers as they are now provided by
finch-core
- FinchServer
- The admin server is now bootstrapped by
AdminHttpServer
rather than being bootstrapped manually. - Configuration of the admin server port is now done with the flag
admin.port
- The function
getCodec
no longer exists since it is not longer applicable now that Httpx is the server builder. - The functions
startServer
andstartTlsServer
now returnListeningServer
to be inline with the Httpx server builder.
- The admin server is now bootstrapped by
- sbt config updated to allow cross compilation for scala 2.11
Regression:
- Due to the new Httpx server builder response compression is no longer possible. There is a patch to add a stack param to finagle
v0.5.0
- Update finagle version to 6.22.0
- Update twitter-server version to 1.8.0
v0.4.1
Fix a bug with the configuration of of StatsFilter.
v0.4.0
- Create new utility factories to reduce the boilerplate needed when creating simple Services (either just delegating a call, or executing a RequestReader)
- Change from using "Simple" for typed traits to using "Typed". Now "Simple" refers to plain HttpRequest.
- Move all request related items into the request package.