more minor progress
This commit is contained in:
parent
da75a8b207
commit
d8e6256da8
3 changed files with 19 additions and 4 deletions
|
|
@ -92,6 +92,10 @@ Retrieves the cookies from the HTTP header and returns a hash reference containi
|
|||
sub getCookies {
|
||||
my $self = shift;
|
||||
if ($self->session->request) {
|
||||
if ($self->session->request->isa('WebGUI::Session::Plack')) {
|
||||
return $self->session->request->request->cookies;
|
||||
}
|
||||
|
||||
# Have to require this instead of using it otherwise it causes problems for command-line scripts on some platforms (namely Windows)
|
||||
require APR::Request::Apache2;
|
||||
my $jarHashRef = APR::Request::Apache2->handle($self->session->request)->jar();
|
||||
|
|
|
|||
|
|
@ -48,6 +48,12 @@ sub AUTOLOAD {
|
|||
|
||||
sub uri { shift->request->request_uri(@_) }
|
||||
sub headers_in { shift->request->headers(@_) }
|
||||
sub param { shift->request->param(@_) }
|
||||
sub params { shift->request->params(@_) }
|
||||
|
||||
# TODO: I suppose this should do some sort of IO::Handle thing
|
||||
my @body;
|
||||
sub print { shift; push @body, @_ }
|
||||
|
||||
sub pnotes {
|
||||
my ($self, $key) = (shift, shift);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue