Mercurial > pub > Impl
annotate lib/IMPL/Web/CGIApplication.pm @ 415:3d24b10dd0d5 ref20150831
working on IMPL::Config::Container
author | cin |
---|---|
date | Tue, 20 Oct 2015 07:32:55 +0300 |
parents | c6e90e02dd17 |
children |
rev | line source |
---|---|
407 | 1 package IMPL::Web::CGIApplication; |
2 use strict; | |
3 | |
4 use IMPL::declare { | |
5 require => { | |
6 CGIWrapper => 'IMPL::Web::CGIWrapper' | |
7 }, | |
8 base => [ | |
9 'IMPL::Web::Application' => '@_' | |
10 ] | |
11 }; | |
12 | |
13 sub CTOR { | |
14 my ($this) = @_; | |
15 | |
16 $this->output(\*STDOUT) unless $this->output; | |
17 } | |
18 | |
19 sub Run { | |
20 my ($this) = @_; | |
21 | |
22 my $query = CGIWrapper->new(); | |
23 | |
24 $query->charset('utf-8'); | |
25 | |
26 $this->ProcessRequest($query); | |
27 } | |
28 | |
29 1; |