An open API service indexing awesome lists of open source software.

https://github.com/willayy/http-server-py

A small HTTP server in python made for learning purposes
https://github.com/willayy/http-server-py

Last synced: 10 months ago
JSON representation

A small HTTP server in python made for learning purposes

Awesome Lists containing this project

README

          

# HTTP-server-Py
A small HTTP server in python made for learning purposes

## How to use
1. Clone the repository
2. Run the server.py file with optional arguments:
- `--port` to specify the port number (default is 6666)
- `--host` to specify the host (default is localhost)
3. Use curl (or any other tool) to make requests to the server, for example you can try:
`curl http://localhost:6666`
4. To stop the server, press `Ctrl+C` in the terminal where the server is running.