Sha256: c58c9ea5ec4ba0fcba2f3838f91ba9bb31c2253293c619f4d59ec948c72f1ab3

Contents?: true

Size: 588 Bytes

Versions: 30

Compression:

Stored size: 588 Bytes

Contents

module HTTParty
  class Response #:nodoc:
    class Headers
      include ::Net::HTTPHeader

      def initialize(header = {})
        @header = header
      end

      def ==(other)
        @header == other
      end

      def inspect
        @header.inspect
      end

      def method_missing(name, *args, &block)
        if @header.respond_to?(name)
          @header.send(name, *args, &block)
        else
          super
        end
      end

      def respond_to?(method, include_all = false)
        super || @header.respond_to?(method, include_all)
      end
    end
  end
end

Version data entries

30 entries across 28 versions & 9 rubygems

Version Path
alloy_sdk-0.1.0 vendor/bundle/ruby/3.0.0/gems/httparty-0.13.1/lib/httparty/response/headers.rb
alloy_sdk-0.1.0 vendor/bundle/ruby/2.6.0/gems/httparty-0.13.1/lib/httparty/response/headers.rb
httparty-0.14.0 lib/httparty/response/headers.rb
simplenet-client-0.2.0 ./vendor/bundle/ruby/2.0.0/gems/httparty-0.13.7/lib/httparty/response/headers.rb
simplenet-client-0.2.0 ./vendor/bundle/ruby/1.9.1/gems/httparty-0.13.7/lib/httparty/response/headers.rb
httparty-0.13.7 lib/httparty/response/headers.rb
httparty-0.13.6 lib/httparty/response/headers.rb
httpserious-0.13.5.lstoll1 lib/httparty/response/headers.rb
httparty-0.13.5 lib/httparty/response/headers.rb
httparty-0.13.4 lib/httparty/response/headers.rb
httsoiree-0.13.3 lib/httparty/response/headers.rb
allegro_api_client-0.0.9 gems/ruby/2.1.0/gems/httparty-0.13.1/lib/httparty/response/headers.rb
httparty-0.13.3 lib/httparty/response/headers.rb
allegro_api_client-0.0.8 gems/ruby/2.1.0/gems/httparty-0.13.1/lib/httparty/response/headers.rb
allegro_api_client-0.0.7 gems/ruby/2.1.0/gems/httparty-0.13.1/lib/httparty/response/headers.rb
httparty-0.13.2 lib/httparty/response/headers.rb
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/lib/httparty/response/headers.rb
allegro_api_client-0.0.6 gems/ruby/2.1.0/gems/httparty-0.13.1/lib/httparty/response/headers.rb
allegro_api_client-0.0.5 gems/ruby/2.1.0/gems/httparty-0.13.1/lib/httparty/response/headers.rb
allegro_api_client-0.0.4 gems/ruby/2.1.0/gems/httparty-0.13.1/lib/httparty/response/headers.rb