Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.129.69.58
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : Record.pm
package FCGI::Client::Record;
use strict;
use warnings;
use FCGI::Client::Constant;
use FCGI::Client::RecordHeader;
use Types::Standard qw/Str/;

use Moo;
has header => (
    is => 'ro',
    isa => sub { die "header must be FCGI::Client::RecordHeader" unless UNIVERSAL::isa($_[0], 'FCGI::Client::RecordHeader') },
    handles => [qw/request_id content_length type/]
);
has content => ( is => 'ro', isa => Str );
no Moo;

__PACKAGE__->meta->make_immutable;
__END__

=head1 NAME

FCGI::Client::Record - record object for FCGI

=head1 SYNOPSIS

    my $record = FCGI::Client::Record->new(header => $header, content => $content);
    say $record->type;

=head1 DESCRIPTION

This module is record class for L<FCGI::Client>.

=head1 ATTRIBUTES

=over 4

=item header

'header' attribute is instance of L<FCGI::Client::RecordHeader>.

=item content

'content' attribute is string of record content.

=back

=head1 METHOD

=over 4

=item $self->request_id()

=item $self->content_length()

=item $self->type()

shortcut of $self->header->I<any_method>()

=back

=head1 SEE ALSO

L<FCGI::Client>

© 2025 GrazzMean