lib/protocol/http/body/readable.rb in protocol-http-0.18.0 vs lib/protocol/http/body/readable.rb in protocol-http-0.19.0
- old
+ new
@@ -42,9 +42,16 @@
# Will read return any data?
def empty?
false
end
+ # Whether calling read will block.
+ # We prefer pessimistic implementation, and thus default to `false`.
+ # @return [Boolean]
+ def ready?
+ false
+ end
+
def length
nil
end
# Read the next available chunk.