Net::HTTP::Spore::Middleware::Header - Spore Middleware to add header on each request
version 0.03
my $client = Net::HTTP::Spore->new_from_spec('api.json'); $client->enable( header_name => 'Content-Type', header_value => 'application/json' );
This module is a middleware that add header on each request. You can specify for exemple a Content-Type to pass.
This method will add header_name:header_value in the header of each request
Please report any bugs or feature requests on the bugtracker website https://github.com/celogeek/Net-HTTP-Spore-Middleware-Header/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.
celogeek <me@celogeek.com>
This software is copyright (c) 2014 by celogeek <me@celogeek.com>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Net::HTTP::Spore::Middleware::Header, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::HTTP::Spore::Middleware::Header
CPAN shell
perl -MCPAN -e shell install Net::HTTP::Spore::Middleware::Header
For more information on module installation, please visit the detailed CPAN module installation guide.