Class RFuzz::HttpResponse
In: lib/rfuzz/client.rb
Parent: Hash

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.

Attributes

http_body  [RW]  The http body of the response, in the raw
http_chunk_size  [RW]  When parsing chunked encodings this is set
http_reason  [RW]  The reason returned in the http response ("OK","File not found",etc.)
http_status  [RW]  The status code (as a string!)
http_version  [RW]  The HTTP version returned.

[Validate]