add remove header http class

This commit is contained in:
garnier-quentin 2020-04-03 10:50:06 +02:00
parent 7cdbfca446
commit 1deff66141
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) = @_;