RTSP::Request - Class encapsulating RTSP requests


NAME

RTSP::Request - Class encapsulating RTSP requests


SYNOPSIS

 my $request = new RTSP::Request ('SETUP',
        URI     => 'rtsp://somesite.com/some/stream',
        Version => '1.0',
        Headers => {

        }

 $request->method('METHOD_NAME');
 $request->version('1.0');
 my $accept = $request->header('Header-Name');

=cut

use 5.005; use strict; use warnings; use vars '$VERSION'; use base 'RTSP::Headers'; use RTSP::Utility;

$VERSION = '0.9';

#==============================================================================#

new([METHOD, OPTIONS])

The constructor method. This creates a new RTSP::Request object and returns a reference to it. The first argument is a string containing the RTSP request method name (for example, ``SETUP'', ``OPTIONS'', or ``TEARDOWN''). In addition, it takes the following optional named parameters:

URI/URL
(Optional.) The full URI (alternately spelled URL) of the RTSP request. Defaults to ``*''.

Version
(Optional.) The RTSP protocol version number. Defaults to 1.0.

 RTSP::Request - Class encapsulating RTSP requests