lib/async/http/request.rb in async-http-0.22.0 vs lib/async/http/request.rb in async-http-0.23.0

- old
+ new

@@ -28,8 +28,12 @@ def self.[](method, path, headers, body) body = Body::Buffered.wrap(body) self.new(nil, method, path, nil, headers, body) end + + def idempotent? + method != 'POST' && (body.nil? || body.empty?) + end end end end