code: func parseRate(r *http.Response) Rate {
  	var rate Rate
  	if limit := r.Header.Get(headerRateLimit); limit != "" {
  		rate.Limit, _ = strconv.Atoi(limit)
  	}
  	if remaining := r.Header.Get(headerRateRemaining); remaining != "" {
  		rate.Remaining, _ = strconv.Atoi(remaining)
  	}
  	if reset := r.Header.Get(headerRateReset); reset != "" {
  		if v, _ := strconv.ParseInt(reset, 10, 64); v != 0 {
  			rate.Reset = Timestamp{time.Unix(v, 0)}
  		}
  	}
  	return rate
  }
docs: // parseRate parses the rate related headers.