lib/async/http/body.rb in async-http-0.40.3 vs lib/async/http/body.rb in async-http-0.41.0
- old
+ new
@@ -16,24 +16,15 @@
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
+require 'protocol/http/body/buffered'
require_relative 'body/writable'
-require_relative 'body/buffered'
module Async
module HTTP
- # These classes implement a general IO model for streaming HTTP bodies.
module Body
- # The implementation assumes a sequential unbuffered stream of data.
- # class Body
- # def each -> yield(String | nil)
- # def read -> String | nil
- # def join -> String
-
- # def finish -> buffer the stream and close it.
- # def close(error = nil) -> close the stream immediately.
- # end
+ include ::Protocol::HTTP::Body
end
end
end