code: func encode(body interface{}) io.Reader {
  	var b bytes.Buffer
  	err := json.NewEncoder(&b).Encode(body)
  	if err != nil {
  		return errorReader{err}
  	}
  	return &b
  }
docs: // encode body as JSON, deferring any errors until io.Reader is used.