NAME
RDF::Server::Interface - defines how the server speaks over the protocol
SYNOPSIS
package My::Interface;
use Moose::Role;
with 'RDF::Server::Interface';
DESCRIPTION
CONFIGURATION
- handlers : ArrayRef[Handler]
-
This is a list of objects that implement the RDF::Server::Role::Handler role. These are searched by
find_handler
to find the handler that will handle the given path.
METHODS
- find_handler($)
-
Given a path, this will return the handler object that should be used to handle the request. If no such object can be found, this will return
undef
.N.B.: Regardless of how the request URL is constructed,
find_handler
expects a REST-style path to find the proper handler. This does not apply to determining what operation is done through the handler once the handler is identified. - handle_request ($$) (required)
-
This method is given an HTTP::Request and HTTP::Response object (in that order) representing the current request and prepared response.
SEE ALSO
AUTHOR
James Smith, <jsmith@cpan.org>
LICENSE
Copyright (c) 2008 Texas A&M University.
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.