Net::FastCGI::Record::BeginRequest - Object representation of a FCGI_BeginRequestRecord
FCGI_BeginRequestRecord
# Constructors $record = Net::FastCGI::Record::BeginRequest->new($request_id, $role, $flags); $record = Net::FastCGI::Record::BeginRequest->parse($request_id, $octets); # Methods $role = $record->get_role; $flags = $record->get_flags; $boolean = $record->is_responder; $boolean = $record->is_authorizer; $boolean = $record->is_filter; $boolean = $record->should_keep_connection;
Net::FastCGI::Record::BeginRequest extends Net::FastCGI::Record.
Net::FastCGI::Record::BeginRequest
Constructs an instance of Net::FastCGI::Record::BeginRequest.
Usage
$record = Net::FastCGI::Record::BeginRequest->new($request_id, $role, $flags);
Arguments
$request_id
An unsigned 16-bit integer.
$role
$flags
An unsigned 8-bit integer.
Returns
$record
An instance of Net::FastCGI::Record::BeginRequest.
Parses FCGI_BeginRequestBody.
FCGI_BeginRequestBody
$record = Net::FastCGI::Record::BeginRequest->parse($request_id, $octets);
$octets
A string of octets containing the body, must be greater than or equal to 8 octets in length.
$role = $record->get_role;
$flags = $record->get_flags;
$boolean = $record->is_responder;
$boolean
A boolean indicating whether or not role is FCGI_RESPONDER.
role
FCGI_RESPONDER
$boolean = $record->is_authorizer;
A boolean indicating whether or not role is FCGI_AUTHORIZER.
FCGI_AUTHORIZER
$boolean = $record->is_filter;
A boolean indicating whether or not role is FCGI_FILTER.
FCGI_FILTER
$boolean = $record->should_keep_connection;
A boolean indicating whether or not flags has the FCGI_KEEP_CONN flag set.
flags
FCGI_KEEP_CONN
None.
Christian Hansen chansen@cpan.org
chansen@cpan.org
Copyright (c) 2008 Christian Hansen. All rights reserved.
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
To install Net::FastCGI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::FastCGI
CPAN shell
perl -MCPAN -e shell install Net::FastCGI
For more information on module installation, please visit the detailed CPAN module installation guide.