lib/postageapp/request.rb
# Getter and setter for headers. You can specify headers in the following
# formats:
#   headers['Custom-Header'] = 'Custom Value'
#   headers 'Custom-Header-1' => 'Custom Value 1',
#           'Custom-Header-2' => 'Custom Value 2'
Getter and setter for headers.
Getter and setter for headers .
def headers(value = nil)
    _headers = self.arguments['headers'] ||= { }
    case (value)
    when Hash
      value.each do |k, v|
        _headers[k.to_s] = v.to_s
      end
    end
    _headers
  end
def headers ( value = nil ) _headers = self . arguments [ 'headers' ] ||= { } case ( value ) when Hash value . each do | k , v | _headers [ k . to_s ] = v . to_s end end _headers end
Getter and setter for headers.
Getter and setter for headers .
value