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: methods.rb
    path of file: ./repos/rack-test/lib/rack/test
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'forwardable'

module Rack
  module Test
    # This module serves as the primary integration point for using Rack::Test
    # in a testing environment. It depends 
    
      def build_rack_test_session(_name) # :nodoc:
        if respond_to?(:build_rack_mock_session, true)
          # Backwards compatibility for capybara
          build_rack_mock_session
        else
          if respond_to?(:default_host)
            Session.new(app, default_host)
          else
            Session.new(app)
          end