class Rack::ContentLengthWithExclusions
Public Class Methods
new(app, options = {})
click to toggle source
# File lib/streamlog/content_length_with_exclusions.rb, line 3 def initialize(app, options = {}) @app = app @exclude = options[:exclude] end
Public Instance Methods
call(env)
click to toggle source
Calls superclass method
# File lib/streamlog/content_length_with_exclusions.rb, line 9 def call(env) if @exclude && @exclude.call(env) @app.call(env) else super(env) end end