Sha256: 1d879cc70085cda2885771c4a10f9d6477797520f9bad707a5c446a185486835
Contents?: true
Size: 749 Bytes
Versions: 4
Compression:
Stored size: 749 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 # Acceptable body # @return [Array<Class>] array of acceptable type's class def body_accept [String] end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
em-midori-0.1.0 | lib/em-midori/middleware.rb |
em-midori-0.0.9.5 | lib/em-midori/middleware.rb |
em-midori-0.0.9.4 | lib/em-midori/middleware.rb |
em-midori-0.0.9.3 | lib/em-midori/middleware.rb |