private Method

DispatchServlet.extract_header_and_body(data)

There's no documentation for this item.

Source Code

# File webrick_server.rb, line 142
def extract_header_and_body(data)
  data.rewind
  data = data.read

  raw_header, body = *data.split(/^[\xd\xa]{2}/on, 2)
  header = WEBrick::HTTPUtils::parse_header(raw_header)

  return header, body
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.