Class: Ask::WebFetch::Http::Response

Inherits:
Data
  • Object
show all
Defined in:
lib/ask/web_fetch/http.rb

Overview

One hop's answer. Redirects stay the backend's job, so location rides along for the backend to resolve.

Instance Attribute Summary collapse

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



35
36
37
# File 'lib/ask/web_fetch/http.rb', line 35

def body
  @body
end

#content_typeObject (readonly)

Returns the value of attribute content_type

Returns:

  • (Object)

    the current value of content_type



35
36
37
# File 'lib/ask/web_fetch/http.rb', line 35

def content_type
  @content_type
end

#locationObject (readonly)

Returns the value of attribute location

Returns:

  • (Object)

    the current value of location



35
36
37
# File 'lib/ask/web_fetch/http.rb', line 35

def location
  @location
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



35
36
37
# File 'lib/ask/web_fetch/http.rb', line 35

def status
  @status
end