Skip to content

ThomasLaPiana/rust-http-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust HTTP Server

Educational implementation of an HTTP webserver in Rust

Webserver Features

  • Host & Port configurable via CLI arguments
  • Supports GET, UPDATE & DELETE HTTP methods
  • Basic Routing
  • Has a simple in-memory DB
  • Reads from disk on startup
  • Writes to disk on each modification request

Glaring Omissions

  • Tests
  • Proper Error Handling (unwraps all around)
  • Multi-Threading
  • Graceful Shutdowns (at least the DB gets written to disk on each request)
  • Proper Logging (only println! here)

Server Logs

image

Client Logs

image

About

Hand-made, artisinal HTTP/1.1 server written in Rust

Resources

License

Stars

Watchers

Forks