github vapor/vapor 3.0.0-rc.2
Vapor 3.0.0 RC 2

latest releases: 4.100.0, 4.99.3, 4.99.2...
pre-release6 years ago

New:

  • Vapor is now running on Swift NIO!
  • DateMiddleware now caches computed timestamps.
  • WebSockets implementation has been refactored to work with NIO's HTTP upgrade mechanism:
let websockets = EngineWebSocketServer.default()
websockets.get(.anything) { ws, req in
    ws.onText { text in
        ws.send(text.reversed())
    }
}
websockets.get("hi") { ws, req in
    ws.onText { text in
        ws.send("hi")
    }
}
services.register(websockets, as: WebSocketServer.self)
  • Multipart module is now being exported by default.
  • Error middleware now creates a JSON response.
  • FoundationClient (URLSession-backed client) is now the default Client.

Fixed:

  • Short flag corrected to -v for printing version.

Milestone

Don't miss a new vapor release

NewReleases is sending notifications on new releases.