code: func dumpResponse(resp *http.Response, body []byte) string {
  	out := &bytes.Buffer{}
  	fmt.Fprintln(out, resp.Status)
  	resp.Header.Write(out)
  	fmt.Fprintln(out)
  	if len(body) == 0 {
  		fmt.Fprintln(out, "<empty body>")
  	} else if isTextContent(resp.Header) {
  		out.Write(body)
  		if body[len(body)-1] != '\n' {
  			fmt.Fprintln(out)
  		}
  		if int64(len(body)) < resp.ContentLength {
  			fmt.Fprintln(out, "<truncated>")
  		}
  	} else {
  		fmt.Fprintln(out, "<binary response>")
  	}
  	return out.String()
  }
docs: ////////////////////////////////////////////////////////////////////////////////
  // dumpResponse converts http.Response to text for the invocation debug log.