Skip to content

🦀 A multi-threaded web server, written in Rust.

Notifications You must be signed in to change notification settings

magnusrodseth/fibre

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fibre - A multi-threaded web server

Description

Fibre is a very simple web server, written from scratch in Rust.

It uses a thread pool of worker threads to handle incoming requests, serving sample HTML content found in the static directory.

Interacting with the web server

# Navigate to the project directory
cd fibre

# Start the application
cargo run

In another terminal tab, use curl to query the web server:

# Send parallel requests. The `-P5` flags determines the amount of parallel requests.
seq 1 200 | xargs -n1 -P5  curl "http://localhost:7878"

Alternatively, use your web browser of choice (e.g. Google Chrome), and visit the URL localhost:7878.

About

🦀 A multi-threaded web server, written in Rust.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published