Franck Cuny > Net-HTTP-Spore-0.04 > Net::HTTP::Spore::Middleware::Format::YAML

Download:
Net-HTTP-Spore-0.04.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.04   Source   Latest Release: Net-HTTP-Spore-0.06

NAME ^

Net::HTTP::Spore::Middleware::Format::YAML - middleware for YAML format

VERSION ^

version 0.04

SYNOPSIS ^

    my $client = Net::HTTP::Spore->new_from_spec('github.json');
    $client->enable('Format::YAML');

DESCRIPTION ^

Net::HTTP::Spore::Middleware::Format::YAML is a simple middleware to handle the YAML 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 YAML.

This middleware will also deserialize content in the response. The deserialized content will be store in the body of the response.

EXAMPLES ^

AUTHOR ^

franck cuny <franck@lumberjaph.net>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2010 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.

syntax highlighting: