NAME

Net::FastCGI::Record - Object representation of a FCGI_Record

SYNOPSIS

# Constructors
$record = Net::FastCGI::Record->new($type, $request_id);

# Methods
$octets         = $record->build;
$type           = $record->get_type;
$request_id     = $record->get_request_id;
$content        = $record->get_content;
$content_length = $record->get_content_length;
$boolean        = $record->has_content;
$boolean        = $record->is_management;
$boolean        = $record->is_discrete;
$boolean        = $record->is_stream;
$string         = $record->to_string;

DESCRIPTION

CONSTRUCTORS

new

Constructs an instance of Net::FastCGI::Record.

Usage

$record = Net::FastCGI::Record->new($type, $request_id);

Arguments

$type

An unsigned 8-bit integer.

$request_id

An unsigned 16-bit integer.

Returns

$record

An instance of Net::FastCGI::Record.

METHODS

build

Usage

$octets = $record->build;

Returns

$octets

A string of octets containing the record.

get_type

Usage

$type = $record->get_type;

Returns

$type

An unsigned 8-bit integer.

get_request_id

Usage

$request_id = $record->get_request_id;

Returns

$request_id

An unsigned 16-bit integer.

get_content

Usage

$content = $record->get_content;

Returns

$content

A string of octets containing the body.

get_content_length

Usage

$content_length = $record->get_content_length;

Returns

$content_length

An unsigned 16-bit integer.

has_content

Usage

$boolean = $record->has_content;

Returns

$boolean

A boolean indicating whether or not record has content.

is_management

Usage

$boolean = $record->is_management;

Returns

$boolean

A boolean indicating whether or not record is a management record.

is_discrete

Usage

$boolean = $record->is_discrete;

Returns

$boolean

A boolean indicating whether or not record is a discrete record.

is_stream

Usage

$boolean = $record->is_stream;

Returns

$boolean

A boolean indicating whether or not record is a stream record.

to_string

Usage

$string = $record->to_string;

Returns

$string

An ASCII string suitable for human consumption.

EXPORTS

None.

SEE ALSO

http://www.fastcgi.com/devkit/doc/fcgi-spec.html#S3.3
"build_header" in Net::FastCGI::Protocol
"build_record" in Net::FastCGI::Protocol

AUTHOR

Christian Hansen chansen@cpan.org

COPYRIGHT

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.