WebGUI::Session::Http should go away (#11647)

Move logic out of WebGUI::Session::HTTP and into WebGUI::Session::Response /
::Request; deprecate more functions; change references in core to use
$session->response instead; fix tests that broke because of the change but
not one that merely generate the deprecated warning because I want to know
that the proxying of depricated methods is working.  These can be changed later.
This commit is contained in:
Scott Walters 2011-05-11 16:17:54 -04:00
parent 72bac90f93
commit 57d2dbed56
76 changed files with 581 additions and 358 deletions

View file

@ -175,7 +175,7 @@ sub handle {
# A WebGUI::Asset::Template object means we should process it
if ( defined $output && blessed $output && $output->isa( 'WebGUI::Asset::Template' ) ) {
$session->http->sendHeader;
$session->response->sendHeader;
$session->output->print( $output->process );
return;
}
@ -187,7 +187,7 @@ sub handle {
# other non-empty output should be used as the response body
elsif (defined $output && $output ne "") {
# Auto-set the headers
$session->http->sendHeader;
$session->response->sendHeader;
# Use contentHandler's return value as the output
$session->output->print($output);
@ -195,7 +195,7 @@ sub handle {
}
# Keep processing for success codes
elsif ($session->response->status < 200 || $session->response->status > 299) {
$session->http->sendHeader;
$session->response->sendHeader;
return;
}
}