
Leyland::Negotiator - Performs HTTP negotiations for Leyland requests

version 0.001007

# used internally

This module performs HTTP negotiations for Leyland requests. When a request is handled by a Leyland application, it is first negotiated by this module to make sure it can be handled, and to decide on how to handle it.
The following negotiations are performed:
There's one thing this method doesn't perform, and that's language negotiation. Since proper HTTP language negotiation is rare (and difficult to implement), you are expect to perform that yourself (only if you wish, of course). For that, Leyland::Localizer is provided.
This module also finds routes that match a path when an HTTP OPTIONS request is received.

Performs a series of HTTP negotiations on the request and returns matching routes. If none are found, an error is thrown. See "DESCRIPTION" for more information.
Finds all routes that match a certain path when an HTTP OPTIONS request is received.
Receives the name of a Leyland-style HTTP method (like 'get', 'post', 'put' or 'del') and returns the correct HTTP name of it (like 'GET', 'POST', 'PUT' or 'DELETE').

The following methods are only to be used internally.

Ido Perlmuter, <ido at ido50.net>

Please report any bugs or feature requests to bug-Leyland at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Leyland. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

You can find documentation for this module with the perldoc command.
perldoc Leyland::Negotiator
You can also look for information at:

Copyright 2010-2011 Ido Perlmuter.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.