ÿØÿà JFIF    ÿÛ „  ( %!1!%)+//.383,7(-.+  -%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ     ÿÄ J    ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ   ÿÄ *  !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú "SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5 ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍѶ¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e ríV ?> ......................................... ............................................................................. ÿØÿà JFIF    ÿÛ „  ( %!1!%)+//.383,7(-.+  -%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ     ÿÄ J    ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ   ÿÄ *  !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú "SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5 ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍѶ¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e ríV ?> ......................................... ............................................................................. ???????????????????????????????????? ???????????????????????????????????? ÿØÿà JFIF    ÿÛ „  ( %!1!%)+//.383,7(-.+  -%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ     ÿÄ J    ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ   ÿÄ *  !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú "SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5 ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍѶ¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e ríV ?> ......................................... ............................................................................. ÿØÿà JFIF    ÿÛ „  ( %!1!%)+//.383,7(-.+  -%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ     ÿÄ J    ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ   ÿÄ *  !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú "SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5 ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍѶ¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e ríV ?> ......................................... ............................................................................. ???????????????????????????????????? ???????????????????????????????????? U:RDoc::NormalClass[iI"HTTPRequest:ETI"Net::HTTPRequest;TI"Net::HTTPGenericRequest;To:RDoc::Markup::Document: @parts[o;;[&o:RDoc::Markup::Paragraph;[I"BThis class is the base class for \Net::HTTP request classes. ;TI",The class should not be used directly; ;TI"9instead you should use its subclasses, listed below.;To:RDoc::Markup::BlankLineS:RDoc::Markup::Heading: leveli: textI"Creating a Request;T@o; ;[I"MAn request object may be created with either a URI or a string hostname:;T@o:RDoc::Markup::Verbatim;[ I"require 'net/http' ;TI"8uri = URI('https://jsonplaceholder.typicode.com/') ;TI"Greq = Net::HTTP::Get.new(uri) # => # ;TI"Greq = Net::HTTP::Get.new(uri.hostname) # => # ;T: @format0o; ;[I"$And with any of the subclasses:;T@o;;[ I"Areq = Net::HTTP::Head.new(uri) # => # ;TI"Areq = Net::HTTP::Post.new(uri) # => # ;TI"?req = Net::HTTP::Put.new(uri) # => # ;TI" # ... ;T;0o; ;[I"OThe new instance is suitable for use as the argument to Net::HTTP#request.;T@S; ; i; I"Request Headers;T@o; ;[I"=A new request object has these header fields by default:;T@o;;[ I"req.to_hash ;TI" # => ;TI"F{"accept-encoding"=>["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"], ;TI""accept"=>["*/*"], ;TI""user-agent"=>["Ruby"], ;TI"/"host"=>["jsonplaceholder.typicode.com"]} ;T;0o; ;[I" See:;T@o:RDoc::Markup::List: @type: BULLET: @items[ o:RDoc::Markup::ListItem: @label0;[o; ;[I"p{Request header Accept-Encoding}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Accept-Encoding] ;TI"[and {Compression and Decompression}[rdoc-ref:Net::HTTP@Compression+and+Decompression].;To;;0;[o; ;[I"m{Request header Accept}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#accept-request-header].;To;;0;[o; ;[I"u{Request header User-Agent}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#user-agent-request-header].;To;;0;[o; ;[I"i{Request header Host}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#host-request-header].;T@o; ;[I"5You can add headers or override default headers:;T@o;;[I"E# res = Net::HTTP::Get.new(uri, {'foo' => '0', 'bar' => '1'}) ;T;0o; ;[I"JThis class (and therefore its subclasses) also includes (indirectly) ;TI"7module Net::HTTPHeader, which gives access to its ;TI"E{methods for setting headers}[rdoc-ref:Net::HTTPHeader@Setters].;T@S; ; i; I"Request Subclasses;T@o; ;[I""Subclasses for HTTP requests:;T@o;;;;[ o;;0;[o; ;[I"Net::HTTP::Get;To;;0;[o; ;[I"Net::HTTP::Head;To;;0;[o; ;[I"Net::HTTP::Post;To;;0;[o; ;[I"Net::HTTP::Put;To;;0;[o; ;[I"Net::HTTP::Delete;To;;0;[o; ;[I"Net::HTTP::Options;To;;0;[o; ;[I"Net::HTTP::Trace;To;;0;[o; ;[I"Net::HTTP::Patch;T@o; ;[I"$Subclasses for WebDAV requests:;T@o;;;;[ o;;0;[o; ;[I"Net::HTTP::Propfind;To;;0;[o; ;[I"Net::HTTP::Proppatch;To;;0;[o; ;[I"Net::HTTP::Mkcol;To;;0;[o; ;[I"Net::HTTP::Copy;To;;0;[o; ;[I"Net::HTTP::Move;To;;0;[o; ;[I"Net::HTTP::Lock;To;;0;[o; ;[I"Net::HTTP::Unlock;T: @fileI"lib/net/http/request.rb;T:0@omit_headings_from_table_of_contents_below0;0;0[[[[[I" class;T[[: public[[I"new;TI"lib/net/http/request.rb;T[:protected[[: private[[I" instance;T[[;[[;[[;[[[U:RDoc::Context::Section[i0o;;[;0;0[@@cRDoc::TopLevel