End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
module · Ruby 3.0
Net::HTTPHeader
42 instance methods
The HTTPHeader module defines methods for reading and writing HTTP headers.
It is used as a mixin by other classes, to provide hash-like access to HTTP header values. Unlike raw hash access, HTTPHeader provides access via case-insensitive keys. It also provides methods for accessing commonly-used HTTP header values in more convenient formats.
Instance methods 42
#[]
#[]=
#add_field
#append_field_value
#basic_auth
#basic_encode
#canonical_each
#capitalize
#chunked?
#connection_close?
#connection_keep_alive?
#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?
#main_type
#proxy_basic_auth
#range
#range=
#range_length
#set_content_type
#set_field
#set_form
#set_form_data
#set_range
#sub_type
#to_hash
#type_params