Releases: swift-glide/glide
Rename consoleLogger
Better Error Handling
This release makes error handling inside middleware a lot more straightforward. It also adds support for automatic response serialization for asynchronous NIO errors.
Fix Dependency URL
v0.1.0
Fix File Middleware and Add Basic Templating Support
v0.0.8 Add basic support for templating (#21)
Asynchronous Middleware Output
The vast majority of operations performed in a server-side app are asynchronous: database connections, file reads, network requests, etc. As such the middleware API introduced so far was categorically flawed. This releases fixes that by introducing EventLoopFuture based middleware that can ensure good interop with other existing Swift server-side software.
Update package syntax to 5.2
Update README.md Update pr-test.yml
Type-safe Middleware
This release makes working with custom middleware a little less error-prone. Thanks to @jnutting for the feedback and pitch.
Prior to this, it was left to the developer to remember to either call next() or finalize the response. This release adds a requirement for middleware to return a result, which will put the compiler to work and help avoid human-error.
Static file Middleware
Now you can use the staticFileHandler
in your app to serve static files.
app.use(staticFileHandler())
By default, it will look for files in the /Public
folder relative to the working directory. In Xcode, this has to be set up in the scheme manually.
To override the static file directory:
app.use(staticFileHandler("/Static"))
Path & Query Parameters
Add support for path and query parameters (#6) Closes #4
Handle POST requests
v0.0.2 Add GitHub action for testing