lib/protocol/http/body/readable.rb in protocol-http-0.26.2 vs lib/protocol/http/body/readable.rb in protocol-http-0.26.3

- old
+ new

@@ -90,9 +90,19 @@ return nil else return buffer end end + + def as_json + { + class: self.class.name, + length: self.length, + stream: self.stream?, + ready: self.ready?, + empty: self.empty? + } + end end end end end