42vogons / webserv

This is when you finally understand why a URL starts with HTTP
MIT License
2 stars 1 forks source link

Webserv

Github top language Github language count Repository size License

About   |   Technologies   |   Requirements   |   Starting   |   Testing   |   License   |   Author


About

This project is about writing an HTTP server.
You will be able to test it with an actual browser.
HTTP is one of the most used protocols on the internet.
Knowing its arcane will be useful, even if you won’t be working on a website.

Technologies

The following tools were used in this project:

Requirements

Before starting, you need to have Git installed.

Starting

# Clone this project
git clone https://github.com/42vogons/webserv

# Access
cd webserv

# Compile the project
make

# Run the project
./webserv

# The server will initialize in the <http://localhost:8080>

Testing

# Access the test dir
cd testers

# Execute shell test
bash test.sh

# Access the concurrent_requests test dir
cd testers/concurrent_requests

# Execute concurrent_requests test
go run concurrent_requests.go [concurrentRequests] [serverURL]
# Example
go run concurrent_requests.go 999 http://localhost:8080

# or (using the compiled file - if you don't have go installed in your machine)
./concurrent_requests [concurrentRequests] [serverURL]
# Example
./concurrent_requests 999 http://localhost:8080

License

This project is under license from MIT. For more details, see the LICENSE file.

 

Back to top