In this chapter, we will cover the following recipes:
- Creating a simple HTTP server
- Implementing basic authentication on a simple HTTP server
- Optimizing HTTP server responses with GZIP compression
- Creating a simple TCP server
- Reading data from a TCP connection
- Writing data to a TCP connection
- Implementing HTTP request routing
- Implementing HTTP request routing using Gorilla Mux
- Logging HTTP requests