https://github.com/takebayashi/http4swift
A simple HTTP server written in Swift
https://github.com/takebayashi/http4swift
Last synced: 18 days ago
JSON representation
A simple HTTP server written in Swift
- Host: GitHub
- URL: https://github.com/takebayashi/http4swift
- Owner: takebayashi
- License: mit
- Created: 2015-12-05T15:05:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-10T02:01:17.000Z (about 9 years ago)
- Last Synced: 2024-10-31T03:33:26.154Z (6 months ago)
- Language: Swift
- Homepage:
- Size: 43.9 KB
- Stars: 27
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-swift-cn - http4swift - A simple HTTP server written in Swift. (Libs / Network)
README
# http4swift
http4swift is a tiny HTTP server library for [Nest](https://github.com/nestproject/Nest)-compatible applications.
This project is unstable, and the API might be changed at anytime before we reach a stable version.
## Usage
```
import http4swift
import Nestlet app: Application = { (request) -> ResponseType in
// ...
}guard let server = HTTPServer(port: 8080) else {
fatalError()
}server.serve(app)
```## Versions
- v0.3.x
* Nest 0.3 compatibility
- v0.2.x
* Nest 0.2 compatibility
- v0.1.x
* First release