method
extract_header_and_body
v2.1.0 -
Show latest stable
- Class:
DispatchServlet
extract_header_and_body(data)private
No documentation available.
# File railties/lib/webrick_server.rb, line 141
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