lib/protocol/http/body/wrapper.rb in protocol-http-0.35.0 vs lib/protocol/http/body/wrapper.rb in protocol-http-0.36.0

- old
+ new

@@ -57,9 +57,13 @@ # Read the next available chunk. def read @body.read end + def discard + @body.discard + end + def as_json(...) { class: self.class.name, body: @body&.as_json }