Home > Articles

Go HTTP Servers

This chapter is from the book

Exercises

1. Modify example04.go to be able to respond to a request for HTML with a simple HTML document. The HTML content type is "text/html; charset=utf-8".

2. Modify example05.go to allow the server to support DELETE requests.

3. Read the documentation for the http package and try to understand some of the modifications you can make to a request and a response when writing a server.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.