You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: test_httpresponse.rb
    path of file: ./repos/artichoke/artichoke-backend/vendor/ruby/tool/test/webrick
    
    the code of the file until where you have to start completion: # frozen_string_literal: false
require "webrick"
require "test/unit"
require "stringio"
require "net/http"


    
    def test_send_body_io
      IO.pipe {|body_r, body_w|
        body_w.write 'hello'
        body_w.close

        @res.body = body_r

        IO.pipe {|r, w|

          @res.send_body w

          w.close

          assert_equal 'hello', r.read
        }
      }
      assert_equal 0, logger.messages.length
    end