Flowdock
method

extract_header_and_body

Importance_0
v2.3.8 - Show latest stable - 0 notes - Class: DispatchServlet
extract_header_and_body(data) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide 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
Register or log in to add new notes.