Class Rufus::Google::Http
In: lib/rufus/ahttp.rb
Parent: Atom::HTTP

Methods

http_request   new  

Public Class methods

[Source]

    # File lib/rufus/ahttp.rb, line 42
42:     def initialize (auth_token)
43: 
44:       @auth_token = auth_token
45: 
46:       super(nil)
47:       #super({})
48: 
49:       @allow_all_redirects = true
50:     end

Public Instance methods

[Source]

    # File lib/rufus/ahttp.rb, line 52
52:     def http_request (
53:       url_s, method, body=nil, headers={}, www_a=nil, redir_limit=5)
54: 
55:       headers['Authorization'] = "GoogleLogin auth=#{@auth_token}"
56:       headers['GData-Version'] = GDATA_VERSION
57: 
58:       super(url_s, method, body, headers, www_a, redir_limit)
59:     end

[Validate]