Method: Grack::Server#_call

Defined in:
lib/grack/server.rb

#_call(env) ⇒ Object



44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/grack/server.rb', line 44

def _call(env)
  @env = env
  @req = Rack::Request.new(env)

  cmd, path, @reqfile, @rpc = match_routing

  return render_method_not_allowed if cmd == 'not_allowed'
  return render_not_found unless cmd

  @git = get_git(path)
  return render_not_found unless git.valid_repo?

  self.method(cmd).call
end