Skip to content

Latest commit

 

History

History
42 lines (23 loc) · 1.09 KB

README.md

File metadata and controls

42 lines (23 loc) · 1.09 KB

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