Skip to content

robgev/rust-http-server

Repository files navigation

progress-banner

This is my solution to the "Build Your Own HTTP server" Challenge.

In this repository you'll find a HTTP/1.1 server that is capable of serving multiple clients.

This server can

  • Work with multiple clients at the same time using threads
  • Save env context using command line args
  • Handle routes that work with files
  • Be extended by using the abstraction layer for creating new routes

How to Run

  1. Ensure you have cargo (1.80) installed locally
  2. Run ./your_program.sh to run your program, which is implemented in src/main.rs.
    • Note: if you want to work with files specify a directory flag ./your_program.sh --directory <your_directory>

To learn more about TCP servers, HTTP request syntax, and more.

Note: If you're viewing this repo on GitHub, head over to codecrafters.io to try the challenge.

About

Multi-Threaded HTTP server with file manipulation capabilities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •