During lecture on September 17, we built a simple HTTP server in Golang. We could run the server locally, and it accepted and received HTTP requests.
Below is a diagram outlining the path a HTTP request takes through our server.
- A web client has data it wants to send. The client can be a browser (Chrome, Safari, Firefox) or a REST client (Insomnia, Postman, curl).
- The client packages the data into a request. The request contains a method, URL, query parameters, and body.
- Our server receives the HTTP request at the router.
- The router chooses the relevant method to direct the HTTP request to.
- Our method contains logic which processes the data and returns an appropriate response.
We are a student group acting independently of the University of California. We take full responsibility for our organization and this website.