lib/hanami/action/rack.rb in hanami-controller-1.0.0.rc1 vs lib/hanami/action/rack.rb in hanami-controller-1.0.0

- old
+ new

@@ -10,23 +10,23 @@ # # @since 0.1.0 module Rack # Rack SPEC response code # - # @since 1.0.0.beta2 + # @since 1.0.0 # @api private RESPONSE_CODE = 0 # Rack SPEC response headers # - # @since 1.0.0.beta2 + # @since 1.0.0 # @api private RESPONSE_HEADERS = 1 # Rack SPEC response body # - # @since 1.0.0.beta2 + # @since 1.0.0 # @api private RESPONSE_BODY = 2 # The default HTTP response code # @@ -34,11 +34,11 @@ # @api private DEFAULT_RESPONSE_CODE = 200 # Not Found # - # @since 1.0.0.beta2 + # @since 1.0.0 # @api private NOT_FOUND = 404 # The default Rack response body # @@ -60,18 +60,18 @@ # @api private REQUEST_METHOD = 'REQUEST_METHOD'.freeze # The Content-Length HTTP header # - # @since 1.0.0.beta2 + # @since 1.0.0 # @api private CONTENT_LENGTH = 'Content-Length'.freeze # The non-standard HTTP header to pass the control over when a resource # cannot be found by the current endpoint # - # @since 1.0.0.beta2 + # @since 1.0.0 # @api private X_CASCADE = 'X-Cascade'.freeze # HEAD request # @@ -333,11 +333,11 @@ # @see Hanami::Action::Rack#send_file # # @param path [String, Pathname] path to the file to be sent # @return [void] # - # @since 1.0.0.beta2 + # @since 1.0.0 # # @example # require 'hanami/controller' # # class Show @@ -371,10 +371,10 @@ # @since 0.4.4 def request_method @_env[REQUEST_METHOD] end - # @since 1.0.0.beta2 + # @since 1.0.0 # @api private def _send_file(response) headers.merge!(response[RESPONSE_HEADERS]) if response[RESPONSE_CODE] == NOT_FOUND