Skip to content

Library upgrades, scala 2.12 and refactoring

Compare
Choose a tag to compare
@benblack86 benblack86 released this 18 Oct 16:13
· 83 commits to master since this release

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 a HttpHeader. For example:

    request.ok(HttpBody("text", HttpHeader("content-type", "application/json")))

    Becomes

    request.ok(HttpBody("text")).withContentType(ContentType.ApplicationJson)