method

parse_rhs

Importance_0
Ruby latest stable (v2_5_5) - 0 notes - Class: SOAP::MIMEMessage::Headers

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_8_7_330) is shown here.

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.