Minor refactoring
This commit is contained in:
parent
ecc9967f2e
commit
f99f672b06
2 changed files with 6 additions and 4 deletions
6
TODO
6
TODO
|
|
@ -1,8 +1,8 @@
|
||||||
TODO
|
TODO
|
||||||
* Deprecate WebGUI::Session::HTTP - replace with WebGUI::Request/Response
|
* Deprecate WebGUI::Session::HTTP - replace with WebGUI::Request/Response
|
||||||
* Delete lib/WebGUI/URL and replace with new Middleware(s)
|
|
||||||
* Investigate moving Cookie handling into middleware
|
* Investigate moving Cookie handling into middleware
|
||||||
* Turn html debug output into a Plack::Middleware::Debug panel
|
* Replace WebGUI::authen with something equivalent
|
||||||
|
* Refactor assets to use streaming response
|
||||||
|
|
||||||
DONE
|
DONE
|
||||||
* $session->request is now a Plack::Request object
|
* $session->request is now a Plack::Request object
|
||||||
|
|
@ -12,6 +12,8 @@ DONE
|
||||||
* Streaming response body
|
* Streaming response body
|
||||||
* Mostly decoupled WebGUI from Log4perl
|
* Mostly decoupled WebGUI from Log4perl
|
||||||
* Exception handling and error doc mapping
|
* Exception handling and error doc mapping
|
||||||
|
* Plack::Middleware::Debug panels
|
||||||
|
* Replaces all URL Handlers with Middleware
|
||||||
|
|
||||||
NB
|
NB
|
||||||
* Periodically do a big stress-test and check for leaks, mysql overload etc..
|
* Periodically do a big stress-test and check for leaks, mysql overload etc..
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@ sub call {
|
||||||
or die 'Missing WebGUI Session - check WebGUI::Middleware::Session';
|
or die 'Missing WebGUI Session - check WebGUI::Middleware::Session';
|
||||||
|
|
||||||
# Handle the request
|
# Handle the request
|
||||||
handle($session);
|
$self->handle($session);
|
||||||
|
|
||||||
# Construct the PSGI response
|
# Construct the PSGI response
|
||||||
my $response = $session->response;
|
my $response = $session->response;
|
||||||
|
|
@ -119,7 +119,7 @@ sub call {
|
||||||
}
|
}
|
||||||
|
|
||||||
sub handle {
|
sub handle {
|
||||||
my ( $session ) = @_;
|
my ( $self, $session ) = @_;
|
||||||
|
|
||||||
# uncomment the following to short-circuit contentHandlers (for benchmarking PSGI scaffolding vs. modperl)
|
# uncomment the following to short-circuit contentHandlers (for benchmarking PSGI scaffolding vs. modperl)
|
||||||
# $session->output->print("WebGUI PSGI with contentHandlers short-circuited for benchmarking\n");
|
# $session->output->print("WebGUI PSGI with contentHandlers short-circuited for benchmarking\n");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue