Sha256: 8c3b99a099e79cbdd66fca60c3a6b40a7de7b2428e3bad42b9c6d4e9f25cead4
Contents?: true
Size: 265 Bytes
Versions: 2
Compression:
Stored size: 265 Bytes
Contents
# frozen_string_literal: true module SilentPing class Pong PATH = "/ping".freeze def initialize(app) @app = app end def call(env) return @app.call(env) unless env["PATH_INFO"] == "/ping" [200, {}, ["pong"]] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
silent_ping-0.1.2 | lib/silent_ping/pong.rb |
silent_ping-0.1.0 | lib/silent_ping/pong.rb |