Building Web Services
The core subject of this chapter is working with HTTP using the net/http
package—keep in mind that all web services require a web server to operate. Additionally, in this chapter, we are going to convert the statistics application into a web application that accepts HTTP connections and create a command line client to work with it. In the last part of the chapter, we are going to learn how to time out HTTP connections.
In more detail, this chapter covers:
- The
net/http
package - Creating a web server
- Updating the statistics application
- Developing web clients
- Creating a client for the statistics service
- Timing out HTTP connections