Parent

Unicorn::App::ExecCgi::Body

Public Instance Methods

body_offset=(n) click to toggle source
# File lib/unicorn/app/exec_cgi.rb, line 31
def body_offset=(n)
  sysseek(@body_offset = n)
end
each() click to toggle source
# File lib/unicorn/app/exec_cgi.rb, line 35
def each
  sysseek @body_offset
  # don't use a preallocated buffer for sysread since we can't
  # guarantee an actual socket is consuming the yielded string
  # (or if somebody is pushing to an array for eventual concatenation
  begin
    yield sysread(CHUNK_SIZE)
  rescue EOFError
    break
  end while true
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.