class Rack::Chunker
Constants
- VERSION
Attributes
bitsize[R]
Public Class Methods
new(stack, bitsize = false)
click to toggle source
# File lib/rack/chunker.rb, line 8 def initialize(stack, bitsize = false) @stack = stack @bitsize = bitsize end
Public Instance Methods
call(previous_state)
click to toggle source
# File lib/rack/chunker.rb, line 13 def call(previous_state) @state = previous_state @status, @headers, @body = stack.call(state) if body.is_a?(Array) [status, headers, body] else [status, headers, [body]] end end
Private Instance Methods
body()
click to toggle source
# File lib/rack/chunker.rb, line 40 def body @body end
headers()
click to toggle source
# File lib/rack/chunker.rb, line 32 def headers @headers end
stack()
click to toggle source
# File lib/rack/chunker.rb, line 24 def stack @stack end
state()
click to toggle source
# File lib/rack/chunker.rb, line 28 def state @state end
status()
click to toggle source
# File lib/rack/chunker.rb, line 36 def status @status end