Flowdock
method

parse_rhs

Importance_0
v1_8_7_330 - Show latest stable - 0 notes - Class: SOAP::MIMEMessage::Headers
parse_rhs(str) public

No documentation

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

Hide source
# File lib/soap/mimemessage.rb, line 78
    def parse_rhs(str)
      a = str.split(/;+\s+/)
      header = Header.new
      header.str = str
      header.root = a.shift
      a.each do |pair|
        if pair =~ /(\w+)\s*=\s*"?([^"]+)"?/
          header[$1.downcase] = $2
        else
          raise RuntimeError.new("unexpected header component: #{pair.inspect}")
        end
      end
      header
    end
Register or log in to add new notes.