Module 06 Β· HTTP with net/http β Lesson 1 of 3 Β· ~9 min
Handlers & the server
The server the app was talking to
In the iOS course, PawWalk's walker list came from an HTTP request to a URL. Something on the other end received that request and wrote back a response. That something is what you build now β and Go ships a production-grade HTTP server in its standard library. No framework to install, no Express, no Rails: net/http is enough to serve real traffic.
The whole model is two ideas: a handler is a function that receives a request and writes a response, and the server listens on a port and calls the right handler for each incoming request. That's it β everything else is detail.