APIdock / Ruby
/
Browse About
method

to_hash

v1_8_6_287 - Show latest stable - Class: Net::HTTPHeader
to_hash()
public

Returns a Hash consist of header names and values.

# File lib/net/http.rb, line 1256
    def to_hash
      @header.dup
    end

Related methods

  • Instance methods
  • []
  • []=
  • add_field
  • basic_auth
  • canonical_each
  • chunked?
  • content_length
  • content_length=
  • content_range
  • content_type
  • content_type=
  • delete
  • each
  • each_capitalized
  • each_capitalized_name
  • each_header
  • each_key
  • each_name
  • each_value
  • fetch
  • form_data=
  • get_fields
  • initialize_http_header
  • key?
  • length
  • main_type
  • proxy_basic_auth
  • range
  • range=
  • range_length
  • set_content_type
  • set_form_data
  • set_range
  • size
  • sub_type
  • to_hash
  • type_params
  • Private methods
  • privatebasic_encode
  • privatecapitalize
  • privateurlencode
APIdock API Documentation Browser

© 2026 APIdock