lib/hanami/action/rack.rb in hanami-controller-1.0.0.beta2 vs lib/hanami/action/rack.rb in hanami-controller-1.0.0.beta3
- old
+ new
@@ -96,14 +96,16 @@
extend ClassMethods
prepend InstanceMethods
end
end
+ # @api private
module ClassMethods
# Build rack builder
#
# @return [Rack::Builder]
+ # @api private
def rack_builder
@rack_builder ||= begin
extend Hanami::Action::Rack::Callable
rack_builder = ::Rack::Builder.new
rack_builder.run ->(env) { self.new.call(env) }
@@ -240,9 +242,10 @@
# end
def request
@request ||= ::Hanami::Action::Request.new(@_env)
end
+ # Return parsed request body
def parsed_request_body
@_env.fetch(ROUTER_PARSED_BODY, nil)
end
private