Parent

Methods

EventMachine::HttpClient::CookieJar

Public Class Methods

new() click to toggle source
# File lib/em-http/client.rb, line 297
def initialize
  @jar = ::CookieJar::Jar.new
end

Public Instance Methods

get(uri) click to toggle source
# File lib/em-http/client.rb, line 305
def get uri
  uri = URI.parse(uri) rescue nil
  uri ? @jar.get_cookies(uri) : []
end
set(string, uri) click to toggle source
# File lib/em-http/client.rb, line 301
def set string, uri
  @jar.set_cookie(uri, string) rescue nil # drop invalid cookies
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.