Sha256: ee5f13fbfb8a885db039488924cf5559d13ba87fa67fdfcda11556bc74e83f0f

Contents?: true

Size: 631 Bytes

Versions: 7

Compression:

Stored size: 631 Bytes

Contents

##
# Ancestor of all middlewares
class Midori::Middleware
  # Init a middleware
  def initialize
  end

  # run before processing a request
  # @param [Midori::Request] request raw request
  # @return [Midori::Request] request to be further processed
  def before(request)
    request
  end

  # run after processing a request
  # @param [Midori::Request] _request raw request
  # @param [Midori::Response] response raw response
  # @return [Midori::Response] response to be further processed
  def after(_request, response)
    response
  end

  # code to be inserted inside CleanRoom
  # @return [nil] nil
  def helper
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
em-midori-0.1.5.1 lib/em-midori/middleware.rb
em-midori-0.1.5 lib/em-midori/middleware.rb
em-midori-0.1.4.1 lib/em-midori/middleware.rb
em-midori-0.1.4 lib/em-midori/middleware.rb
em-midori-0.1.3 lib/em-midori/middleware.rb
em-midori-0.1.2 lib/em-midori/middleware.rb
em-midori-0.1.1 lib/em-midori/middleware.rb