github vapor/vapor 4.23.0
Add support for string interpolation to URI

latest releases: 4.95.0, 4.94.1, 4.94.0...
3 years ago
This patch was authored by @dimitribouniol and released by @tanner0101.

Enables call sites that use URIs to allow for string literals that make use of interpolation (#2442).

app.get("hello") { req -> EventLoopFuture<String> in
    return req.client.get("\(Constants.basePath)/status")
    .flatMapThrowing { res throws in
        return "Hello, world!"
    }
}

Don't miss a new vapor release

NewReleases is sending notifications on new releases.