Skip to content

FlorianLang06/rust-http-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Rust HTTP Server

This is a simple project where I tried to write an http server in rust. I am not a rust expert, so the code and the code stucture could be bad.

The server can only handle http GET request and respone with the content of the file in the filesystem.

If you request a path the server try to read the index.html file in this path.

Configuration

The config is stored in the http-server.json file in the root directory of the server.

Example config

{
  "server_ip": "0.0.0.0",
  "port": 8080,
  "sites": [
    {
      "hostname": "*",
      "physical_path": "./testsite"
    }
  ]
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published