Repo displays a simple HTTP request-response, using JSON objects. It can be used to simulate a client request (from Python, using the requests module) and a corresponding server response (from Golang, using the gin module).
- Set up Python 3 and pip3
- Install requests module using the following command
sudo pip3 install requests
- Install gin using the following command
go get github.com/gin-gonic/gin
- Clone the repo
- On one terminal window, run
go run server.go
- On another terminal window, run
python3 send.py
- The request should be visible on server.go and the corresponding response should be visible on the terminal running the python program
- Ashutosh Kumar Gupta