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: utils.rb
    path of file: ./repos/rack-app/lib/rack/app/test
    
    the code of the file until where you have to start completion: module Rack::App::Test::Utils

  extend self

  def format_properties(properti
    
  def env_by(uri, properties)

    properties = format_properties(properties)
    env = properties[:headers].reduce({}) { |m, (k, v)| m.merge("HTTP_#{k.to_s.tr('-', '_').upcase}" => v.to_s) }
    payload = properties.delete(:payload)
    env["rack.input"]= ::Rack::Lint::Wrapper::InputWrapper.new(string_io_for(payload))
    env[::Rack::QUERY_STRING]= query_string_by(uri, properties[:params])
    env.merge!(properties[:env] || {})

    env
  end