Class Grape::Middleware::Base
In: lib/grape/middleware/base.rb
Parent: Object

Methods

Included Modules

Grape::DSL::Headers

Constants

TEXT_HTML = 'text/html'.freeze

Attributes

app  [R] 
env  [R] 
options  [R] 

Public Class methods

@param [Rack Application] app The standard argument for a Rack middleware. @param [Hash] options A hash of options, simply stored for use by subclasses.

Public Instance methods

@abstract Called after the application is called in the middleware lifecycle. @return [Response, nil] a Rack SPEC response or nil to call the application afterwards.

@abstract Called before the application is called in the middleware lifecycle.

[Validate]