Class: Rhinestone::HttpClient

Inherits:
Object
  • Object
show all
Defined in:
lib/rhinestone/http_client.rb

Instance Method Summary collapse

Instance Method Details

#get(path) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/rhinestone/http_client.rb', line 7

def get(path)
  response = EM::HttpRequest.new("http://#{hostname}#{path}").get(:redirects => 5)
  headers = response.response_header
  return Rhinestone::Response.new(headers.status,
                                  header_filter.filter(headers),
                                  response.response)
end