File: //opt/alt/ruby32/share/gems/doc/rest-client-2.1.0/ri/RestClient/Resource/cdesc-Resource.ri
U:RDoc::NormalClass[iI"
Resource:ETI"RestClient::Resource;TI"Object;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"HA class that can be instantiated for access to a RESTful resource, ;TI"including authentication.;To:RDoc::Markup::BlankLine o; ;[I"
Example:;T@o:RDoc::Markup::Verbatim;[I"Aresource = RestClient::Resource.new('http://some/resource')
;TI"0jpg = resource.get(:accept => 'image/jpg')
;T:@format0o; ;[I"$With HTTP basic authentication:;T@o;;[I"presource = RestClient::Resource.new('http://protected/resource', :user => 'user', :password => 'password')
;TI"resource.delete
;T;0o; ;[I"With a timeout (seconds):;T@o;;[I"BRestClient::Resource.new('http://slow', :read_timeout => 10)
;T;0o; ;[I"$With an open timeout (seconds):;T@o;;[I"LRestClient::Resource.new('http://behindfirewall', :open_timeout => 10)
;T;0o; ;[I"KYou can also use resources to share common headers. For headers keys, ;TI"/symbols are converted to strings. Example:;T@o;;[I"gresource = RestClient::Resource.new('http://some/resource', :headers => { :client_version => 1 })
;T;0o; ;[I"OThis header will be transported as X-Client-Version (notice the X prefix, ;TI" capitalization and hyphens);T@o; ;[I"0Use the [] syntax to allocate subresources:;T@o;;[I"esite = RestClient::Resource.new('http://example.com', :user => 'adam', :password => 'mypasswd')
;TI"Qsite['posts/1/comments'].post 'Good article.', :content_type => 'text/plain';T;0:
@fileI"lib/restclient/resource.rb;T:0@omit_headings_from_table_of_contents_below0;
0;0[[
I"
block;TI"R;T:publicFI"lib/restclient/resource.rb;T[
I"options;T@C;F@D[
I"url;T@C;F@D[ [ [[I"
class;T[[;[[I"new;T@D[:protected[ [:private[ [I"
instance;T[[;[[I"[];T@D[I"delete;T@D[I"get;T@D[I" head;T@D[I"headers;T@D[I"log;T@D[I"open_timeout;T@D[I"
password;T@D[I"
patch;T@D[I" post;T@D[I"put;T@D[I"read_timeout;T@D[I" to_s;T@D[I" user;T@D[;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ;
0;0[@?I"RestClient;TcRDoc::NormalModule