Skip to content

diasrafael/web-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

web-server

A very simple implementation of a multi-thread static webserver using HTTP over TCP. The main goal here is to practice the learnings from the book The Rust Programing Language, chapter 20: Final Project: Building a Multithreaded Web Server.

Getting Started

You'll need to install Rust and Cargo (rust package manager)

  • Cargo (Linux and MacOS)
$ curl https://sh.rustup.rs -sSf | sh

Running

  1. Clone the repo
  2. Run the server
cargo run

Usage

  1. Open your browser
  2. Use one tab to access http://127.0.0.1:7878/sleep, which will open a slow page (10 seconds sleeping thread).
  3. Use another tab to access http://127.0.0.1:7878/, which will open a quick page (no sleep).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published