class Gitlab::Headers::Total
@private
Parses total header.
def extract_total(header_total)
def extract_total(header_total) TOTAL_REGEX.match(header_total.strip) do |match| @total = match[0] end end
def initialize(headers)
def initialize(headers) header_total = headers[HEADER_TOTAL] extract_total(header_total) if header_total end