+ Add get_header() method to http plugin
This commit is contained in:
parent
8e70fe4585
commit
5a6c0ad398
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue