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

require "http_router"

require_relative "callback"
require_relative "http_callbac
    
    def new_route(http_method, path, callback, options)
      route = ExtendedRoute.new
      route.path = path
      route.name = callback.method_name
      route.add_match_with(options)
      route.add_request_method(http_method)
      route.add_request_method("HEAD") if http_method == "GET"
      route
    end