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: about 1 month 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 (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-09T21:59:16.000Z (over 1 year ago)
- Last Synced: 2025-02-23T04:39:47.148Z (over 1 year ago)
- Language: Python
- Size: 10.7 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.