Vapor is an HTTP web framework for Swift. It provides a beautifully expressive and easy-to-use foundation for your next website, API, or cloud project.
Take a look at some of the awesome stuff created with Vapor.
Join the welcoming community of fellow Vapor developers on Discord.
To contribute a feature or idea to Vapor, create an issue explaining your idea or bring it up on Discord.
If you find a bug, please create an issue.
If you find a security vulnerability, please contact [email protected] as soon as possible.
Support Vapor's development by becoming a sponsor.
Support Vapor's development by becoming a backer.
link |
Stars: 23805 |
Last commit: 11 hours ago |
Patch configuration and log actual port on startup by @bisgardo in #3160
Before this change, the application
let app = Application(.testing) defer { app.shutdown() } try app.server.start(hostname: nil, port: 0) defer { app.server.shutdown() }
would log the following message before starting the server:
[Vapor] Server starting on http://127.0.0.1:0
After this change it instead logs a message like the following after starting the server:
[Vapor] Server starting on http://127.0.0.1:57935
The input configuration is also patched such that
app.http.server.configuration.port
will hold the actual port after startup. Currently if it has value 0 it will keep that value (onlyapp.http.server.shared.localAddress?.port
will have the correct one).Fixes #3159.
Thanks to the reviewers for their help:
Full Changelog: https://github.com/vapor/vapor/compare/4.94.0...4.94.1
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics