Module: Hanami::Action::Rack
- Defined in:
- lib/hanami/action/rack.rb,
lib/hanami/action/rack/file.rb,
lib/hanami/action/rack/callable.rb
Overview
Rack integration API
Defined Under Namespace
Modules: Callable, ClassMethods, InstanceMethods Classes: File
Constant Summary collapse
- RESPONSE_CODE =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Rack SPEC response code
0
- RESPONSE_HEADERS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Rack SPEC response headers
1
- RESPONSE_BODY =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Rack SPEC response body
2
- DEFAULT_RESPONSE_CODE =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
The default HTTP response code
200
- NOT_FOUND =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Not Found
404
- DEFAULT_RESPONSE_BODY =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
The default Rack response body
[]
- DEFAULT_REQUEST_ID_LENGTH =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
The default HTTP Request ID length
16
- REQUEST_METHOD =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
The request method
'REQUEST_METHOD'.freeze
- CONTENT_LENGTH =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
The Content-Length HTTP header
'Content-Length'.freeze
- X_CASCADE =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
The non-standard HTTP header to pass the control over when a resource cannot be found by the current endpoint
'X-Cascade'.freeze
- HEAD =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
HEAD request
'HEAD'.freeze
- ROUTER_PARSED_BODY =
The key that returns router parsed body from the Rack env
'router.parsed_body'.freeze
Class Method Summary collapse
-
.included(base) ⇒ Object
private
Override Ruby’s hook for modules.
Class Method Details
.included(base) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Override Ruby’s hook for modules. It includes basic Hanami::Action modules to the given class.
95 96 97 98 99 100 |
# File 'lib/hanami/action/rack.rb', line 95 def self.included(base) base.class_eval do extend ClassMethods prepend InstanceMethods end end |