https://github.com/slashmo/weasel
HTTP 1.1 Server implemented (from scratch) in Swift
https://github.com/slashmo/weasel
http-server low-level swift weasel
Last synced: 8 months ago
JSON representation
HTTP 1.1 Server implemented (from scratch) in Swift
- Host: GitHub
- URL: https://github.com/slashmo/weasel
- Owner: slashmo
- License: mit
- Created: 2020-02-24T18:05:27.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2020-08-20T08:04:06.000Z (over 5 years ago)
- Last Synced: 2025-05-06T04:13:12.815Z (8 months ago)
- Topics: http-server, low-level, swift, weasel
- Language: Swift
- Homepage:
- Size: 104 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Weasel HTTP Server
[](https://swift.org/download/)
[](https://github.com/slashmo/weasel/actions?query=workflow%3A%22Continuous+Integration%22)
## Do not use in production
🏗👨🎓 Weasel is an HTTP Server implementation written in [Swift](https://github.com/apple/swift). It's sole purpose is for me to learn about HTTP and lower-level code.
## Demo
[`Weasel`](https://github.com/slashmo/weasel/tree/master/Sources/Weasel) itself is a Swift library package that you, in theory, could **but definetely shouldn't** use in your own backend applications. Included in this repository is also an executable [`Example`](https://github.com/slashmo/weasel/tree/master/Sources/Example) which spins up an HTTP Server using the `Weasel` library.
```sh
swift package resolve
swift run
```
### Projects inspiring this implementation
- [Swift NIO](https://github.com/apple/swift-nio)
- [Vapor](https://github.com/vapor/vapor)