lib/rtsp/message.rb
# Adds the header and its value to the list of headers for the message.
#
# @param [Symbol] type The header type.
# @param [*] value The value to set the header field to.
Adds the header and its value to the list of headers for the message.
Adds the header and its value to the list of headers for the message .
def header(type, value)
      if type.is_a? Symbol
        headers[type] = value
      else
        raise RTSP::Error, "Header type must be a Symbol (i.e. :cseq)."
      end
    end
def header ( type , value ) if type . is_a? Symbol headers [ type ] = value else raise RTSP :: Error , "Header type must be a Symbol (i.e. :cseq)." end end
Adds the header and its value to the list of headers for the message.
Adds the header and its value to the list of headers for the message .
type
value
value The value to set the header field to.
value The value to set the header field to .