Sha256: f8b310cd2dfc91646f33eb78b41141d6a35a726c0f52fe151852d4187725c60a

Contents?: true

Size: 547 Bytes

Versions: 22

Compression:

Stored size: 547 Bytes

Contents

class LHC::Interceptor

  attr_reader :request

  def initialize(request)
    @request = request
  end

  def response
    @request.response
  end

  def before_raw_request; end

  def before_request; end

  def after_request; end

  def before_response; end

  def after_response; end

  # Prevent Interceptors from beeing duplicated!
  # Their classes have flag-character.
  # When duplicated you can't check for their class name anymore:
  # e.g. options.deep_dup[:interceptors].include?(LHC::Caching) # false
  def self.dup
    self
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
lhc-10.1.2 lib/lhc/interceptor.rb
lhc-10.1.1 lib/lhc/interceptor.rb
lhc-10.1.0 lib/lhc/interceptor.rb
lhc-10.0.2 lib/lhc/interceptor.rb
lhc-9.4.4 lib/lhc/interceptor.rb
lhc-10.0.1 lib/lhc/interceptor.rb
lhc-10.0.0 lib/lhc/interceptor.rb
lhc-9.4.3 lib/lhc/interceptor.rb
lhc-9.4.2 lib/lhc/interceptor.rb
lhc-9.4.1 lib/lhc/interceptor.rb
lhc-9.4.0 lib/lhc/interceptor.rb
lhc-9.3.1 lib/lhc/interceptor.rb
lhc-9.3.0 lib/lhc/interceptor.rb
lhc-9.2.0 lib/lhc/interceptor.rb
lhc-9.1.2 lib/lhc/interceptor.rb
lhc-9.1.2.pre lib/lhc/interceptor.rb
lhc-9.1.1 lib/lhc/interceptor.rb
lhc-8.1.1 lib/lhc/interceptor.rb
lhc-9.1.0 lib/lhc/interceptor.rb
lhc-9.0.0 lib/lhc/interceptor.rb