Sha256: 837b1c827cbb3211d7bb76d7335cd3e37f489c5c03aeccfca307e8ee18d36c92
Contents?: true
Size: 252 Bytes
Versions: 50
Compression:
Stored size: 252 Bytes
Contents
module Rack::App::InstanceMethods::HTTPStatus def http_status!(code, desc=nil) raise unless code.is_a?(Integer) response.status = code response.write(desc || Rack::App::Constants::HTTP_STATUS_CODES[code] || raise) finish! end end
Version data entries
50 entries across 50 versions & 2 rubygems