This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class CompressedRequests | |
| def initialize(app) | |
| @app = app | |
| end | |
| def method_handled?(env) | |
| !!(env['REQUEST_METHOD'] =~ /(POST|PUT)/) | |
| end | |
| def encoding_handled?(env) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Example of .jrubyrc | |
| # Set compilation mode. JIT = at runtime; FORCE = before execution. (JIT, FORCE, OFF, OFFIR) | |
| # compile.mode = FORCE | |
| # Dump to console all bytecode generated at runtime. | |
| # compile.dump = true | |
| # Enable verbose JIT logging (reports failed compilation) | |
| # jit.logging.verbose = true |
OlderNewer