Class: Tina4::DispatchPipeline::DispatchContext
- Inherits:
-
Struct
- Object
- Struct
- Tina4::DispatchPipeline::DispatchContext
- Defined in:
- lib/tina4/dispatch_pipeline.rb
Overview
Per-request state shared between stages.
This exists so a stage can be called on its own with nothing but a
context - the alternative is stages reading each other's locals, which is
the coupling the extraction is removing. bypass_response_stages records
an EXISTING quirk rather than introducing one: the swagger and static
branches used to return straight out of #call, skipping every
post-processing step. See the comment on #match_route.
Instance Attribute Summary collapse
-
#bypass_response_stages ⇒ Object
Returns the value of attribute bypass_response_stages.
-
#env ⇒ Object
Returns the value of attribute env.
-
#matched ⇒ Object
Returns the value of attribute matched.
-
#matched_pattern ⇒ Object
Returns the value of attribute matched_pattern.
-
#method ⇒ Object
Returns the value of attribute method.
-
#path ⇒ Object
Returns the value of attribute path.
-
#pre_request ⇒ Object
Returns the value of attribute pre_request.
-
#pre_response ⇒ Object
Returns the value of attribute pre_response.
-
#started_at ⇒ Object
Returns the value of attribute started_at.
Instance Attribute Details
#bypass_response_stages ⇒ Object
Returns the value of attribute bypass_response_stages
118 119 120 |
# File 'lib/tina4/dispatch_pipeline.rb', line 118 def bypass_response_stages @bypass_response_stages end |
#env ⇒ Object
Returns the value of attribute env
118 119 120 |
# File 'lib/tina4/dispatch_pipeline.rb', line 118 def env @env end |
#matched ⇒ Object
Returns the value of attribute matched
118 119 120 |
# File 'lib/tina4/dispatch_pipeline.rb', line 118 def matched @matched end |
#matched_pattern ⇒ Object
Returns the value of attribute matched_pattern
118 119 120 |
# File 'lib/tina4/dispatch_pipeline.rb', line 118 def matched_pattern @matched_pattern end |
#method ⇒ Object
Returns the value of attribute method
118 119 120 |
# File 'lib/tina4/dispatch_pipeline.rb', line 118 def method @method end |
#path ⇒ Object
Returns the value of attribute path
118 119 120 |
# File 'lib/tina4/dispatch_pipeline.rb', line 118 def path @path end |
#pre_request ⇒ Object
Returns the value of attribute pre_request
118 119 120 |
# File 'lib/tina4/dispatch_pipeline.rb', line 118 def pre_request @pre_request end |
#pre_response ⇒ Object
Returns the value of attribute pre_response
118 119 120 |
# File 'lib/tina4/dispatch_pipeline.rb', line 118 def pre_response @pre_response end |
#started_at ⇒ Object
Returns the value of attribute started_at
118 119 120 |
# File 'lib/tina4/dispatch_pipeline.rb', line 118 def started_at @started_at end |