lib/async/http/response.rb in async-http-0.27.3 vs lib/async/http/response.rb in async-http-0.27.4

- old
+ new

@@ -62,9 +62,13 @@ def bad_request? status == 400 end + def server_failure? + status == 500 + end + def self.[](status, headers = {}, body = []) body = Body::Buffered.wrap(body) self.new(nil, status, nil, headers, body) end