Welcome to mirror list, hosted at ThFree Co, Russian Federation.

config.ru « configs « rack_servers « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c832ee9b6ff25dbb2d49c86723cde53b749dcedc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

app = proc do |env|
  if env['REQUEST_METHOD'] == 'GET'
    [200, {}, [Process.pid.to_s]]
  else
    Process.kill(env['QUERY_STRING'], Process.pid)
    [200, {}, ['Bye!']]
  end
end

run app