D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Net
/
HTTPHeader
/
Filename :
each_header-i.ri
back
Copy
U:RDoc::AnyMethod[iI"each_header:ETI" Net::HTTPHeader#each_header;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I".Calls the block with each key/value pair:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"8res = Net::HTTP.get_response(hostname, '/todos/1') ;TI"%res.each_header do |key, value| ;TI". p [key, value] if key.start_with?('c') ;TI" end ;T:@format0o; ; [I"Output:;T@o;; [ I"9["content-type", "application/json; charset=utf-8"] ;TI""["connection", "keep-alive"] ;TI"(["cache-control", "max-age=43200"] ;TI" ["cf-cache-status", "HIT"] ;TI"(["cf-ray", "771d17e9bc542cf5-ORD"] ;T; 0o; ; [I"0Returns an enumerator if no block is given.;T@o; ; [I"FNet::HTTPHeader#each is an alias for Net::HTTPHeader#each_header.;T: @fileI"lib/net/http/header.rb;T:0@omit_headings_from_table_of_contents_below00I"key;T[[I" each;To;; [ ;@%;0I"();T@%FI"HTTPHeader;TcRDoc::NormalModule00