Skip to content

tschiolborg/http-server-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust HTTP server from scratch

Simple HTTP server in Rust from scratch.

Run:

cargo run
cargo run -- --directory lol

Try:

curl -i localhost:4221
curl -i localhost:4221/user-agent
curl -i localhost:4221/echo/hello
curl -i localhost:4221/echo -X POST -d "hello"
curl -i localhost:4221/files/poem.txt
curl -i localhost:4221/files/hello.txt -X POST -d "hello"
curl -i localhost:4221/files/hello.txt -X DELETE -d

About

HTTP server from scratch in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages