Method: HTTP::Message#ok?
- Defined in:
- lib/httpclient/http.rb
#ok? ⇒ Boolean
Convenience method to return boolean of whether we had a successful request
1068 1069 1070 |
# File 'lib/httpclient/http.rb', line 1068 def ok? HTTP::Status.successful?(status) end |