Net::HTTP::Spore::Middleware::Format::JSON - middleware for JSON format
version 0.06
my $client = Net::HTTP::Spore->new_from_spec('twitter.json'); $client->enable('Format::JSON');
Net::HTTP::Spore::Middleware::Format::JSON is a simple middleware to handle the JSON format. It will set the appropriate Accept header in your request. If the request method is PUT or POST, the Content-Type header will also be set to JSON.
This middleware will also deserialize content in the response. The deserialized content will be store in the body of the response.
franck cuny <franck@lumberjaph.net>
Ash Berlin <ash@cpan.org>
This software is copyright (c) 2012 by linkfluence.
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, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::HTTP::Spore
CPAN shell
perl -MCPAN -e shell install Net::HTTP::Spore
For more information on module installation, please visit the detailed CPAN module installation guide.