Models representing the data-layer for Server-sent events.
The models are strongly typed, but have some escape-hatches in case that non-specced data is needed.
.package(url: "https://github.com/fizker/swift-server-sent-event-models.git", from: "0.0.1"),
..product(name: "ServerSentEventModels", package: "swift-server-sent-event-models"),
.import ServerSentEventModels
.For an example, see the Package.swift and the routes.swift from the demo project for an example.
For detailed examples on how to use the package, see the DocC docs.
link |
Stars: 0 |
Last commit: 4 weeks ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics