Class: Tina4::DispatchPipeline::DispatchContext

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#bypass_response_stagesObject

Returns the value of attribute bypass_response_stages

Returns:

  • (Object)

    the current value of bypass_response_stages



118
119
120
# File 'lib/tina4/dispatch_pipeline.rb', line 118

def bypass_response_stages
  @bypass_response_stages
end

#envObject

Returns the value of attribute env

Returns:

  • (Object)

    the current value of env



118
119
120
# File 'lib/tina4/dispatch_pipeline.rb', line 118

def env
  @env
end

#matchedObject

Returns the value of attribute matched

Returns:

  • (Object)

    the current value of matched



118
119
120
# File 'lib/tina4/dispatch_pipeline.rb', line 118

def matched
  @matched
end

#matched_patternObject

Returns the value of attribute matched_pattern

Returns:

  • (Object)

    the current value of matched_pattern



118
119
120
# File 'lib/tina4/dispatch_pipeline.rb', line 118

def matched_pattern
  @matched_pattern
end

#methodObject

Returns the value of attribute method

Returns:

  • (Object)

    the current value of method



118
119
120
# File 'lib/tina4/dispatch_pipeline.rb', line 118

def method
  @method
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



118
119
120
# File 'lib/tina4/dispatch_pipeline.rb', line 118

def path
  @path
end

#pre_requestObject

Returns the value of attribute pre_request

Returns:

  • (Object)

    the current value of pre_request



118
119
120
# File 'lib/tina4/dispatch_pipeline.rb', line 118

def pre_request
  @pre_request
end

#pre_responseObject

Returns the value of attribute pre_response

Returns:

  • (Object)

    the current value of pre_response



118
119
120
# File 'lib/tina4/dispatch_pipeline.rb', line 118

def pre_response
  @pre_response
end

#started_atObject

Returns the value of attribute started_at

Returns:

  • (Object)

    the current value of started_at



118
119
120
# File 'lib/tina4/dispatch_pipeline.rb', line 118

def started_at
  @started_at
end