+
Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Releases: swift-glide/glide

Rename consoleLogger

16 Mar 22:37

Choose a tag to compare

Better Error Handling

23 Oct 13:17
46a18ad

Choose a tag to compare

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

22 Jul 12:38

Choose a tag to compare

Fix File Middleware and Add Basic Templating Support

12 Apr 18:41
60bc2d6

Choose a tag to compare

v0.0.8

Add basic support for templating (#21)

Asynchronous Middleware Output

09 Apr 14:58

Choose a tag to compare

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

07 Apr 09:22

Choose a tag to compare

Update README.md

Update pr-test.yml

Type-safe Middleware

23 Mar 21:15
9890356

Choose a tag to compare

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

22 Mar 11:34
8e5da50

Choose a tag to compare

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

17 Mar 01:10
8773721

Choose a tag to compare

Add support for path and query parameters (#6)

Closes #4

Handle POST requests

10 Mar 01:40
2135c37

Choose a tag to compare

v0.0.2

Add GitHub action for testing
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载