Library upgrades, scala 2.12 and refactoring
To migration from 0.9.x to 0.10.x:
-
Package namespace changes, a non-exhausted list:
colossus.protocols.http.server.HttpServer
=>colossus.protocols.http.HttpServer
colossus.protocols.http.server.Initializer
=>colossus.protocols.http.Initializer
colossus.protocols.http.server.RequestHandler
=>colossus.protocols.http.RequestHandler
colosuss.metrics.LoggerSender
=>colosuss.metrics.senders.LoggerSender
colosuss.metrics.OpenTsdbSender
=>colosuss.metrics.senders.OpenTsdbSender
-
Content type removed from
HttpBody
and is now correctly accessible as aHttpHeader
. For example:request.ok(HttpBody("text", HttpHeader("content-type", "application/json")))
Becomes
request.ok(HttpBody("text")).withContentType(ContentType.ApplicationJson)