NAME

HTTP::AnyUA::Middleware::RequestHeaders - Middleware to add custom request headers

VERSION

version 0.904

SYNOPSIS

    $any_ua->apply_middleware('RequestHeaders',
        headers  => {connection => 'close'},
        override => 0,
    );

DESCRIPTION

This middleware adds custom headers to each request.

ATTRIBUTES

headers

Get the custom headers.

override

When true, custom headers overwrite headers in the request. The default is false (the request headers take precedence when defined).

SEE ALSO

BUGS

Please report any bugs or feature requests on the bugtracker website https://github.com/chazmcgarvey/HTTP-AnyUA/issues

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR

Charles McGarvey <chazmcgarvey@brokenzipper.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2019 by Charles McGarvey.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.