Sha256: 8e00d2027ec2603264c345be0555c42c5d8411152379efb7dad65b7573fccf84
Contents?: true
Size: 795 Bytes
Versions: 120
Compression:
Stored size: 795 Bytes
Contents
module Acfs class Response # Method to fetch information about response status. # module Status # Return response status code. Will return zero if # request was not executed or failed on client side. # def status_code return @status.to_i if defined? :@status #return response.response_code unless response.nil? #0 end alias :code :status_code # Return true if response was successful indicated by # response status code. # def success? code >= 200 && code < 300 end # Return true unless response status code indicates that # resource was not modified according to send precondition headers. # def modified? code != 304 end end end end
Version data entries
120 entries across 120 versions & 1 rubygems