One of the most salient features of our Tech Hiring culture is that there is so much bullshit. Everyone knows this. Each of us contributes his share. But we tend to take the situation for granted.
A lightweight library for writing HTTP web servers with Swift
Taylor
Disclaimer: Not actively working on it anymore. You can check out somealternatives
Swift 2.0 required. Working with Xcode 7.1.
Disclaimer: It is a work in progress, it may break. Use it at your own risk.
Taylor is a library which allows you to create web server applications in Swift
Status
At this moment, Taylor only supports GET, POST and PUT HTTP requests. Better documentation is on the way.
Hello World
importTaylorlet server = Taylor.Server()
server.get("/") { req, res in
res.bodyString="Hello, world!"return .Send
}
let port =3002do {
print("Starting server on port: \(port)")
try server.serveHTTP(port: port, forever: true)
} catch {
print("Server start failed \(error)")
}
Yes there is an overlap betwee Swift the language and Swift the singer.
Here is my proof
A lightweight library for writing HTTP web servers with Swift
Taylor
Disclaimer: Not actively working on it anymore. You can check out some alternatives
Swift 2.0 required. Working with Xcode 7.1.
Disclaimer: It is a work in progress, it may break. Use it at your own risk.
Taylor is a library which allows you to create web server applications in Swift
Status
At this moment, Taylor only supports GET, POST and PUT HTTP requests. Better documentation is on the way.
Hello World
More advanced usage instructionsβ¦