class HTTP::Cookie

def acceptable?

origin is missing, returns true.
If either domain or path is missing, raises ArgumentError. If
Tests if it is OK to accept this cookie considering its origin.
def acceptable?
  case
  when @domain.nil?
    raise "domain is missing"
  when @path.nil?
    raise "path is missing"
  when @origin.nil?
    true
  else
    acceptable_from_uri?(@origin)
  end
end