Home > Articles

  • Print
  • + Share This
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.

  • + Share This
  • 🔖 Save To Your Account