--- !ruby/object:RI::ClassDescription 
attributes: 
- !ruby/object:RI::Attribute 
  comment: 
  name: proxy
  rw: RW
class_methods: 
- !ruby/object:RI::MethodSummary 
  name: delete
- !ruby/object:RI::MethodSummary 
  name: get
- !ruby/object:RI::MethodSummary 
  name: head
- !ruby/object:RI::MethodSummary 
  name: log=
- !ruby/object:RI::MethodSummary 
  name: post
- !ruby/object:RI::MethodSummary 
  name: put
comment: 
- !ruby/struct:SM::Flow::P 
  body: This module's static methods are the entry point for using the REST client.
- !ruby/struct:SM::Flow::VERB 
  body: "  # GET\n  xml = RestClient.get 'http://example.com/resource'\n  jpg = RestClient.get 'http://example.com/resource', :accept =&gt; 'image/jpg'\n\n  # authentication and SSL\n  RestClient.get 'https://user:password@example.com/private/resource'\n\n  # POST or PUT with a hash sends parameters as a urlencoded form body\n  RestClient.post 'http://example.com/resource', :param1 =&gt; 'one'\n\n  # nest hash parameters\n  RestClient.post 'http://example.com/resource', :nested =&gt; { :param1 =&gt; 'one' }\n\n  # POST and PUT with raw payloads\n  RestClient.post 'http://example.com/resource', 'the post body', :content_type =&gt; 'text/plain'\n  RestClient.post 'http://example.com/resource.xml', xml_doc\n  RestClient.put 'http://example.com/resource.pdf', File.read('my.pdf'), :content_type =&gt; 'application/pdf'\n\n  # DELETE\n  RestClient.delete 'http://example.com/resource'\n\n  # retreive the response http code and headers\n  res = RestClient.get 'http://example.com/some.jpg'\n  res.code                    # =&gt; 200\n  res.headers[:content_type]  # =&gt; 'image/jpg'\n\n  # HEAD\n  RestClient.head('http://example.com').headers\n"
- !ruby/struct:SM::Flow::P 
  body: "To use with a proxy, just set RestClient.proxy to the proper http proxy:"
- !ruby/struct:SM::Flow::VERB 
  body: "  RestClient.proxy = &quot;http://proxy.example.com/&quot;\n"
- !ruby/struct:SM::Flow::P 
  body: "Or inherit the proxy from the environment:"
- !ruby/struct:SM::Flow::VERB 
  body: "  RestClient.proxy = ENV['http_proxy']\n"
- !ruby/struct:SM::Flow::P 
  body: "For live tests of RestClient, try using http://rest-test.heroku.com, which echoes back information about the rest call:"
- !ruby/struct:SM::Flow::VERB 
  body: "  &gt;&gt; RestClient.put 'http://rest-test.heroku.com/resource', :foo =&gt; 'baz'\n  =&gt; &quot;PUT http://rest-test.heroku.com/resource with a 7 byte payload, content type application/x-www-form-urlencoded {\\&quot;foo\\&quot;=&gt;\\&quot;baz\\&quot;}&quot;\n"
constants: []

full_name: RestClient
includes: []

instance_methods: []

name: RestClient
superclass: 
