Module | Typhoeus::Response::Status |
In: |
lib/typhoeus/response/status.rb
|
This module contains logic about the http status.
Return whether the response is a failure.
@example Return if the response was failed.
response.failure?
@return [ Boolean ] Return true if failure, false else.
Return the http version.
@example Return http version.
response.http_version
@return [ String ] The http version.
Return wether the response is modified.
@example Return if the response was modified.
response.modified?
@return [ Boolean ] Return true if modified, false else.
Return the status message if present.
@example Return status message.
reesponse.status_message
@return [ String ] The message.
Return whether the response is a success.
@example Return if the response was successful.
response.success?
@return [ Boolean ] Return true if successful, false else.