lib/rtsp/message.rb
# Use to message-chain with one of the method types; used when creating a
# new Message to add headers you want.
#
# @example Simple header
#   RTSP::Message.options("192.168.1.10").with_headers({ cseq: @cseq })
# @example Multi-word header
#   RTSP::Message.options("192.168.1.10").with_headers({ user_agent:
#   'My RTSP Client 1.0' })   # => "OPTIONS 192.168.1.10 RTSP 1.0\r\n
#                             #     CSeq: 1\r\n
#                             #     User-Agent: My RTSP Client 1.0\r\n"
# @param [Hash] new_headers The headers to add to the Request.  The Hash
#   key of each will be converted from snake_case to Rtsp-Style.
# @return [RTSP::Message]
Use to message-chain with one of the method types; used when creating a
new Message to add headers you want.
Use to message - chain with one of the method types ; used when creating a new Message to add headers you want .
def with_headers(new_headers)
      add_headers new_headers
      self
    end
def with_headers ( new_headers ) add_headers new_headers self end
Use to message-chain with one of the method types; used when creating a
new Message to add headers you want.
Use to message - chain with one of the method types ; used when creating a new Message to add headers you want .
None
RTSP::Message
new_headers
new_headers The headers to add to the Request. The Hash key of each will be converted from snake_case to Rtsp-Style.
new_headers The headers to add to the Request . The Hash key of each will be converted from snake_case to Rtsp - Style .
example
None
example
None