Sha256: a4e31222fdaa902b33525ca936e703be6f80785021eab5c3197e0c5d14cc0dd7
Contents?: true
Size: 367 Bytes
Versions: 2
Compression:
Stored size: 367 Bytes
Contents
require 'racli/handlers/base' module Racli module Handlers class DefaultHandler < Base def call(status, headers, body, original_args) case status.to_i when 200...300 puts body[0] when 300...400 else STDERR.puts body[0] end [status, headers, body] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
racli-0.1.1 | lib/racli/handlers/default_handler.rb |
racli-0.1.0 | lib/racli/handlers/default_handler.rb |