|
|
@@ -14,7 +14,7 @@ Tiny http server engine written in Swift ( https://developer.apple.com/swift/ )
|
|
|
### How to start?
|
|
|
```swift
|
|
|
let server = HttpServer()
|
|
|
-server["/hello"] = { .OK(.HTML("You asked for " + $0.url)) }
|
|
|
+server["/hello"] = { .OK(.Html("You asked for " + $0.url)) }
|
|
|
server.start()
|
|
|
```
|
|
|
### How to share files?
|
|
|
@@ -40,5 +40,5 @@ pod 'Swifter', '~> 1.1.3'
|
|
|
### Carthage? Also yes.
|
|
|
|
|
|
```
|
|
|
-github "glock45/swifter" == 1.1.3
|
|
|
+github "httpswift/swifter" == 1.1.3
|
|
|
```
|