Class: Crawlr::HTTPInterface::Response
- Inherits:
-
Struct
- Object
- Struct
- Crawlr::HTTPInterface::Response
- Defined in:
- lib/crawlr/http_interface.rb
Overview
Simplified HTTP response structure for internal use
Instance Attribute Summary collapse
-
#body ⇒ String?
readonly
Response body content.
-
#headers ⇒ Hash
readonly
HTTP response headers.
-
#status ⇒ Integer
readonly
HTTP status code.
-
#url ⇒ String
readonly
The requested URL.
-
#version ⇒ String
readonly
HTTP protocol version.
Instance Attribute Details
#body ⇒ String? (readonly)
Returns Response body content.
62 |
# File 'lib/crawlr/http_interface.rb', line 62 Response = Struct.new(:url, :status, :headers, :version, :body) |
#headers ⇒ Hash (readonly)
Returns HTTP response headers.
62 |
# File 'lib/crawlr/http_interface.rb', line 62 Response = Struct.new(:url, :status, :headers, :version, :body) |
#status ⇒ Integer (readonly)
Returns HTTP status code.
62 |
# File 'lib/crawlr/http_interface.rb', line 62 Response = Struct.new(:url, :status, :headers, :version, :body) |
#url ⇒ String (readonly)
Returns The requested URL.
62 |
# File 'lib/crawlr/http_interface.rb', line 62 Response = Struct.new(:url, :status, :headers, :version, :body) |
#version ⇒ String (readonly)
Returns HTTP protocol version.
62 |
# File 'lib/crawlr/http_interface.rb', line 62 Response = Struct.new(:url, :status, :headers, :version, :body) |