https://github.com/bc1bb/gotrusty
🦀 HTTP server made in Rust with no dependency.
https://github.com/bc1bb/gotrusty
http rust socket-server
Last synced: 6 months ago
JSON representation
🦀 HTTP server made in Rust with no dependency.
- Host: GitHub
- URL: https://github.com/bc1bb/gotrusty
- Owner: bc1bb
- Created: 2022-10-19T20:24:04.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-11T21:03:44.000Z (about 2 years ago)
- Last Synced: 2025-06-06T15:08:06.078Z (7 months ago)
- Topics: http, rust, socket-server
- Language: Rust
- Homepage:
- Size: 70.3 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GotRusty
Simple HTTP server made in Rust.
**Please do not use in prod.**
As per `wrk` (8t,8c) on a MacBook Pro M1, this server handles 1.7k req/s. (terrible)
## Config
Environment variables can be used to set any settings including config file path: `GR_Config`: `/etc/gotrusty/Config.toml`
(to set a setting from env var prefix with `GR_`)
- `addr` (defaulted to `127.0.0.1`),
- `port` (defaulted to `1337`),
- `file_root` (defaulted to `.`),
- `errors_root` (defaulted to `./error`),
- `mime_default` (defaulted to `text/plain`).