Method: HTTPX::Headers#each

Defined in:
lib/httpx/headers.rb

#eachObject

returns the enumerable headers store in pairs of header field + the values in the comma-separated string format



95
96
97
98
99
100
# File 'lib/httpx/headers.rb', line 95

def each
  return enum_for(__method__) { @headers.size } unless block_given?
  @headers.each do |field, value|
    yield(field, value.join(", ")) unless value.empty?
  end
end