Class: Itsi::Server::Config::StaticResponse
- Inherits:
-
Middleware
- Object
- Middleware
- Itsi::Server::Config::StaticResponse
- Defined in:
- lib/itsi/server/config/middleware/static_response.rb
Instance Method Summary collapse
-
#initialize(location, params) ⇒ StaticResponse
constructor
A new instance of StaticResponse.
Methods inherited from Middleware
Methods included from ConfigHelpers
included, load_and_register, #normalize_keys!
Constructor Details
#initialize(location, params) ⇒ StaticResponse
Returns a new instance of StaticResponse.
23 24 25 26 |
# File 'lib/itsi/server/config/middleware/static_response.rb', line 23 def initialize(location, params) super @params[:body] = @params[:body].bytes end |