File: Request.pm

package info (click to toggle)
libhtml-mason-perl 1%3A1.58-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,796 kB
  • sloc: perl: 8,618; sh: 49; makefile: 2
file content (35 lines) | stat: -rw-r--r-- 742 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# -*- cperl-indent-level: 4; cperl-continued-brace-offset: -4; cperl-continued-statement-offset: 4 -*-

# Copyright (c) 1998-2005 by Jonathan Swartz. All rights reserved.
# This program is free software; you can redistribute it and/or modify it
# under the same terms as Perl itself.

package HTML::Mason::Apache::Request;
$HTML::Mason::Apache::Request::VERSION = '1.58';
use strict;
use warnings;

use base 'Apache::Request';


sub new
{
    my $class = shift;
    my $r     = Apache::Request->instance(shift);

    return bless { r => $r }, $class;
}

sub send_http_header
{
    my $self = shift;

    return if $self->notes('sent_http_header');

    $self->SUPER::send_http_header(@_);

    $self->notes( 'sent_http_header' => 1 );
}


1;