Class: CookieHTTPClient::CookieJar

Inherits:
HTTP::CookieJar
  • Object
show all
Defined in:
lib/cookie_http_client.rb

Instance Method Summary collapse

Instance Method Details



23
24
25
# File 'lib/cookie_http_client.rb', line 23

def cookie_string(uri)
  HTTP::Cookie.cookie_value(self.cookies(uri))
end


27
28
29
30
31
# File 'lib/cookie_http_client.rb', line 27

def set_cookie(str, uri)
  if str and !str.empty?
    self.parse(str, uri)
  end
end