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: env_helpers.rb
    path of file: ./repos/appsignal-ruby/spec/support/helpers
    
    the code of the file until where you have to start completion: module EnvHelpers
  def http_request_env_with_data(args = {})
    with_queue_start = args.delete(:with_queue_start)
    path = args.delete(:path) || "/blog"
    request = Rack::MockRequest.env_for(
      path,
      :params => args[:params] || {
        "controller" => "blog_posts",
        "action" => "show",
        "id" => "1"
   
    
  def http_request_env_with_data(args = {})
    with_queue_start = args.delete(:with_queue_start)
    path = args.delete(:path) || "/blog"
    request = Rack::MockRequest.env_for(
      path,
      :params => args[:params] || {
        "controller" => "blog_posts",
        "action" => "show",
        "id" => "1"
      }
    ).merge(
      :controller => "BlogPostsController",
      :action => "show",
      :request_format => "html",
      :request_method => "GET",
      :status => "200",
      :view_runtime => 500,
      :db_runtime => 500,
      :metadata => { :key => "value" }
    ).merge(args)

    # Set default queue value
    if with_queue_start
      request["HTTP_X_QUEUE_START"] = "t=#{(fixed_time * 1_000).to_i}" # in milliseconds
    end