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
- Host: GitHub
- URL: https://github.com/willayy/http-server-py
- Owner: willayy
- Created: 2025-02-09T12:54:02.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-02-09T14:25:44.000Z (11 months ago)
- Last Synced: 2025-02-09T15:25:24.070Z (11 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.