File: //usr/local/rvm/gems/default/doc/actionpack-6.1.4.1/ri/ActionDispatch/Http/Headers/cdesc-Headers.ri
U:RDoc::NormalClass[iI"Headers:ETI""ActionDispatch::Http::Headers;TI"Object;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"HProvides access to the request's HTTP headers from the environment.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim;[ I"Venv = { "CONTENT_TYPE" => "text/plain", "HTTP_USER_AGENT" => "curl/7.43.0" }
;TI"<headers = ActionDispatch::Http::Headers.from_hash(env)
;TI"/headers["Content-Type"] # => "text/plain"
;TI".headers["User-Agent"] # => "curl/7.43.0"
;T:@format0o; ;[ I"NAlso note that when headers are mapped to CGI-like variables by the Rack ;TI"Lserver, both dashes and underscores are converted to underscores. This ;TI"Nambiguity cannot be resolved at this stage anymore. Both underscores and ;TI"Mdashes have to be interpreted as if they were originally sent as dashes.;T@o;;[I"# GET / HTTP/1.1
;TI"# ...
;TI"# User-Agent: curl/7.43.0
;TI"# X_Custom_Header: token
;TI"
;TI")headers["X_Custom_Header"] # => nil
;TI",headers["X-Custom-Header"] # => "token";T;0:
@fileI"(lib/action_dispatch/http/headers.rb;T:0@omit_headings_from_table_of_contents_below0;
0;0[ [U:RDoc::Constant[i I"CGI_VARIABLES;TI"1ActionDispatch::Http::Headers::CGI_VARIABLES;T:public0o;;[ ;
@';0@'@cRDoc::NormalClass0U;[i I"HTTP_HEADER;TI"/ActionDispatch::Http::Headers::HTTP_HEADER;T;0o;;[ ;
@';0@'@@00[[I"Enumerable;To;;[ ;
@';0I"(lib/action_dispatch/http/headers.rb;T[[I"
class;T[[;[[I"from_hash;T@<[:protected[ [:private[ [I"
instance;T[[;[[I"[];T@<[I"[]=;T@<[I"add;T@<[I" each;T@<[I"env;T@<[I"
fetch;T@<[I"
include?;T@<[I" key?;T@<[I"
merge;T@<[I"merge!;T@<[;[ [;[[I"
env_name;T@<[ [U:RDoc::Context::Section[i 0o;;[ ;
0;0[@'I"ActionDispatch::Http;TcRDoc::NormalModule