Let's build an HTTP server

This commit is contained in:
2026-04-12 11:05:30 -04:00
parent 8232bf66ee
commit 7edf80da41
6 changed files with 35 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
/target/
+7
View File
@@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4
[[package]]
name = "h8r"
version = "0.1.0"
+6
View File
@@ -0,0 +1,6 @@
[package]
name = "h8r"
version = "0.1.0"
edition = "2024"
[dependencies]
+5
View File
@@ -0,0 +1,5 @@
# h8r gonna h8
h + len(ttpserve) + r
A li'l HTTP server for learning stuff.
+13
View File
@@ -0,0 +1,13 @@
- [ ] single-request server on fixed port responding "oh no"
- [ ] multi-request server on fixed port responding "oh no"
- [ ] configurable port and working directory
- [ ] string responses
- [ ] error page paths
- [ ] serve "index.txt" file if exists, else 404
- [ ] serve relative paths with mime type text/plain
- [ ] guess mime type
- [ ] automatic directory index
- [ ] content ranges
- [ ] upstream proxy via prefix
- [ ] upstream proxy path match
- [ ] upstream proxy header middleware rules
+3
View File
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}