code: def write_headers(self):
          
          hlist = []
          for h in self.headers:
              hlist.append("{}: {}".format(h.key, h.value))
          return hlist
docs: Construct headers in string form, and return a list containing each
          line of header strings.