add remove header http class

This commit is contained in:
garnier-quentin 2020-04-03 10:50:06 +02:00 committed by Lotfi zaouche
parent 9005390af2
commit 6c47f4cef1
1 changed files with 6 additions and 0 deletions

View File

@ -82,6 +82,12 @@ sub add_header {
$self->{add_headers}->{$options{key}} = $options{value};
}
sub remove_header {
my ($self, %options) = @_;
delete $self->{add_headers}->{$options{key}} if (defined($self->{add_headers}->{$options{key}}));
}
sub check_options {
my ($self, %options) = @_;