instance method
extract_header_and_body
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18 PrivateAvailable in: v2.2.3 v2.3.18
Signature
extract_header_and_body(data)
No documentation comment.
Parameters
-
datareq
Source
# File railties/lib/webrick_server.rb, line 132
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
Defined in railties/lib/webrick_server.rb line 132
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in DispatchServlet