File: Request.pm

package info (click to toggle)
libhtml-mason-perl 1%3A1.39-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,072 kB
  • ctags: 1,535
  • sloc: perl: 17,624; sh: 187; makefile: 12
file content (35 lines) | stat: -rw-r--r-- 694 bytes parent folder | download | duplicates (3)
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;

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;