|
|
%!s(int64=10) %!d(string=hai) anos | |
|---|---|---|
| Resources | %!s(int64=10) %!d(string=hai) anos | |
| Sources | %!s(int64=10) %!d(string=hai) anos | |
| Swifter.xcodeproj | %!s(int64=10) %!d(string=hai) anos | |
| SwifterMac | %!s(int64=10) %!d(string=hai) anos | |
| SwifterSampleOSX | %!s(int64=10) %!d(string=hai) anos | |
| SwifterSampleiOS | %!s(int64=10) %!d(string=hai) anos | |
| SwifteriOS | %!s(int64=10) %!d(string=hai) anos | |
| .gitignore | %!s(int64=10) %!d(string=hai) anos | |
| .swiftlint.yml | %!s(int64=10) %!d(string=hai) anos | |
| LICENSE | %!s(int64=12) %!d(string=hai) anos | |
| Package.swift | %!s(int64=10) %!d(string=hai) anos | |
| README.md | %!s(int64=10) %!d(string=hai) anos | |
| Swifter.podspec | %!s(int64=10) %!d(string=hai) anos |
Swift is an innovative new programming language for Cocoa and Cocoa Touch. Writing code is interactive and fun, the syntax is concise yet expressive, and apps run lightning-fast. Swift is ready for your next iOS and OS X project — or for addition into your current app — because Swift code works side-by-side with Objective-C.
Tiny http server engine written in Swift ( https://developer.apple.com/swift/ ) programming language.
let server = HttpServer()
server["/hello"] = { .OK(.HTML("You asked for " + $0.url)) }
server.start()
let server = HttpServer()
server["/home/(.+)"] = HttpHandlers.directory("~/")
server.start()
let server = HttpServer()
server["/redirect"] = { request in
return .MovedPermanently("http://www.google.com")
}
server.start()
pod 'Swifter', '~> 1.0.2’
github "glock45/swifter" == 1.0.2