Class: RFuzz::HttpResponse
- Inherits:
-
Hash
- Object
- Hash
- RFuzz::HttpResponse
- Defined in:
- lib/rfuzz/client.rb
Overview
A simple hash is returned for each request made by HttpClient with the headers that were given by the server for that request. Attached to this are four attributes you can play with:
* http_reason
* http_version
* http_status
* http_body
These are set internally by the Ragel/C parser so they’re very fast and pretty much C voodoo. You can modify them without fear once you get the response.
Instance Attribute Summary collapse
-
#http_body ⇒ Object
The http body of the response, in the raw.
-
#http_chunk_size ⇒ Object
When parsing chunked encodings this is set.
-
#http_reason ⇒ Object
The reason returned in the http response (“OK”,“File not found”,etc.).
-
#http_status ⇒ Object
The status code (as a string!).
-
#http_version ⇒ Object
The HTTP version returned.
Instance Attribute Details
#http_body ⇒ Object
The http body of the response, in the raw
33 34 35 |
# File 'lib/rfuzz/client.rb', line 33 def http_body @http_body end |
#http_chunk_size ⇒ Object
When parsing chunked encodings this is set
36 37 38 |
# File 'lib/rfuzz/client.rb', line 36 def http_chunk_size @http_chunk_size end |
#http_reason ⇒ Object
The reason returned in the http response (“OK”,“File not found”,etc.)
24 25 26 |
# File 'lib/rfuzz/client.rb', line 24 def http_reason @http_reason end |
#http_status ⇒ Object
The status code (as a string!)
30 31 32 |
# File 'lib/rfuzz/client.rb', line 30 def http_status @http_status end |
#http_version ⇒ Object
The HTTP version returned.
27 28 29 |
# File 'lib/rfuzz/client.rb', line 27 def http_version @http_version end |