Raisin::Middleware::Formatter - A parser/formatter middleware for Raisin.
version 0.92
Parses and formats the data it gets from requests and responses if it's needed.
Negotiates a format from path extension, Accept header or using default format.
Accept
A precedence is following:
extension; =item * Accept header; =item * default;
In other words if an extension exists the framework doesn't look for Accept header. If the extension is not supported the framework throws an error, the same is for Accept header. Only if both extension and Accept header are not specified it fallback to default format.
Extracts an extension from a path, and if exists looks for a formatter.
Parses Accept header for known formatters.
Artur Khabibullin
This software is copyright (c) 2019 by Artur Khabibullin.
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 Raisin, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Raisin
CPAN shell
perl -MCPAN -e shell install Raisin
For more information on module installation, please visit the detailed CPAN module installation guide.