+ Add get_header() method to http plugin

This commit is contained in:
Bertrand Cournaud 2015-12-23 10:14:39 +01:00
parent 8e70fe4585
commit 5a6c0ad398
1 changed files with 27 additions and 20 deletions

View File

@ -297,7 +297,14 @@ sub request {
$self->{output}->exit();
}
$self->{headers} = $response->headers;
return $response->content;
}
sub get_header {
my ($self, %options) = @_;
return $self->{headers};
}
1;