Skip to content

HTTP server made in Rust from without external libraries

License

Notifications You must be signed in to change notification settings

neoRandom/rust-http-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTP Server (in Rust!)

A server based on HTTP made with Rust from Scratch.

Supports multithreading and (only) GET requests.

How to use:

Make sure that you have cargo and rustc installed in your computer

Run cargo build --release at the cmd to build an executable

Run .\target\release\http-server.exe to start the server

Access http://<you_local_address>:7878 to see the index page

To download a file, access the endpoint /file. Example: /file/filename.ext/p=<password>

This project was only tested on Windows 10.

Types of status code:

2xx: Success - The action was successfully received, understood, and accepted

  • 200 Ok

4xx Client Error - The request contains bad syntax or cannot be fulfilled

  • 400 Bad Request
  • 404 Not Found

Based on:

Licence

This project is currently under a LICENSE

About

HTTP server made in Rust from without external libraries

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published