Sha256: 6cc9a1bd717de21c4cc636945467efc4c6b3aff9fac37fbe90413d2cbbcb8023
Contents?: true
Size: 364 Bytes
Versions: 3
Compression:
Stored size: 364 Bytes
Contents
#!/usr/bin/env falcon --verbose serve -c require 'async' class RequestLogger def initialize(app) @app = app end def call(env) logger = Async.logger.with(level: :debug) Async(logger: logger) do @app.call(env) end.wait end end use RequestLogger run lambda {|env| Async.logger.debug(self) {env['HTTP_USER_AGENT']}; [200, {}, ["Hello World"]]}
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
falcon-0.35.2 | examples/hello/config.ru |
falcon-0.35.1 | examples/hello/config.ru |
falcon-0.35.0 | examples/hello/config.ru |